forked from cmangos/mangos-cata
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spell: Move SpellTotems DBC into database
- Loading branch information
Showing
9 changed files
with
2,729 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER TABLE spell_template ADD `TotemCategory1` INT UNSIGNED NOT NULL DEFAULT '0' AFTER SpellTotemsId; | ||
ALTER TABLE spell_template ADD `TotemCategory2` INT UNSIGNED NOT NULL DEFAULT '0' AFTER TotemCategory1; | ||
ALTER TABLE spell_template ADD `Totem1` INT UNSIGNED NOT NULL DEFAULT '0' AFTER TotemCategory2; | ||
ALTER TABLE spell_template ADD `Totem2` INT UNSIGNED NOT NULL DEFAULT '0' AFTER Totem1; | ||
|
||
UPDATE spell_template INNER JOIN spell_totems ON (spell_template.SpellTotemsId = spell_totems.Id) SET spell_template.TotemCategory1 = spell_totems.TotemCategory1; | ||
UPDATE spell_template INNER JOIN spell_totems ON (spell_template.SpellTotemsId = spell_totems.Id) SET spell_template.TotemCategory2 = spell_totems.TotemCategory2; | ||
UPDATE spell_template INNER JOIN spell_totems ON (spell_template.SpellTotemsId = spell_totems.Id) SET spell_template.Totem1 = spell_totems.Totem1; | ||
UPDATE spell_template INNER JOIN spell_totems ON (spell_template.SpellTotemsId = spell_totems.Id) SET spell_template.Totem2 = spell_totems.Totem2; | ||
|
||
ALTER TABLE spell_template DROP COLUMN SpellTotemsId; | ||
|
||
DROP TABLE spell_totems; |
Oops, something went wrong.