diff options
| author | funjoker <funjoker109@gmail.com> | 2021-04-27 11:06:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-27 11:06:56 +0200 |
| commit | f4ef40d9686135088a76c90a3f9de6a6bc10e8f0 (patch) | |
| tree | f0e5b09d0f4eb2c884ad2c30639d34f0a340f613 /sql | |
| parent | 8b0de23d0e4b15fce8dc8c67f9512f76804d6439 (diff) | |
Core/Conversations: Fix conversation data handling (#26375)
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/updates/world/master/2021_04_26_00_world.sql | 9 |
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`; |
