mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Globals: fix some DBC loading from DB data and reorder columns (must be in relative DBC order or else you get garbage data)
This commit is contained in:
17
sql/updates/world/4.3.4/2018_03_28_00_world.sql
Normal file
17
sql/updates/world/4.3.4/2018_03_28_00_world.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
ALTER TABLE `spell_dbc`
|
||||
CHANGE `SpellInterruptsId` `SpellInterruptsId` INT(10) UNSIGNED DEFAULT 0 NOT NULL AFTER `SpellEquippedItemsId`;
|
||||
|
||||
ALTER TABLE `spelleffect_dbc`
|
||||
ADD COLUMN `Comment` TEXT NOT NULL AFTER `EffectIndex`;
|
||||
|
||||
CREATE TEMPORARY TABLE `spelleffectdbc_comments` (
|
||||
`Id` INT(10) UNSIGNED NOT NULL,
|
||||
`Comment` TEXT NOT NULL,
|
||||
PRIMARY KEY (`Id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `spelleffectdbc_comments` (`Id`, `Comment`)
|
||||
SELECT DISTINCT spe.EffectSpellId, sp.`Comment` FROM `spelleffect_dbc` spe LEFT JOIN spell_dbc sp ON sp.Id = spe.EffectSpellId;
|
||||
|
||||
UPDATE `spelleffect_dbc` spe, `spelleffectdbc_comments` spc SET spe.`Comment`=spc.`Comment` WHERE spe.`EffectSpellId` = spc.`Id`;
|
||||
DROP TABLE `spelleffectdbc_comments`;
|
||||
Reference in New Issue
Block a user