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:
1 parent
5ff847159c
commit
f3f99cc317
2 files changed
+19
-2
No files matched your search
@@ -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