aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorfunjoker <funjoker109@gmail.com>2021-04-27 11:06:56 +0200
committerGitHub <noreply@github.com>2021-04-27 11:06:56 +0200
commitf4ef40d9686135088a76c90a3f9de6a6bc10e8f0 (patch)
treef0e5b09d0f4eb2c884ad2c30639d34f0a340f613 /sql
parent8b0de23d0e4b15fce8dc8c67f9512f76804d6439 (diff)
Core/Conversations: Fix conversation data handling (#26375)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2021_04_26_00_world.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/updates/world/master/2021_04_26_00_world.sql b/sql/updates/world/master/2021_04_26_00_world.sql
new file mode 100644
index 00000000000..a796650e5f4
--- /dev/null
+++ b/sql/updates/world/master/2021_04_26_00_world.sql
@@ -0,0 +1,9 @@
+ALTER TABLE `conversation_actors`
+ ADD COLUMN `CreatureId` int(10) unsigned NOT NULL DEFAULT '0' AFTER `Idx`,
+ ADD COLUMN `CreatureDisplayInfoId` int(10) unsigned NOT NULL DEFAULT '0' AFTER `CreatureId`;
+
+UPDATE `conversation_actors` AS ca
+INNER JOIN `conversation_actor_template` AS cat ON (ca.ConversationActorId = cat.Id)
+SET ca.CreatureId = cat.CreatureId, ca.CreatureDisplayInfoId = cat.CreatureModelId;
+
+DROP TABLE `conversation_actor_template`;