forked from cmangos/mangos-cata
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spell: Move SpellCategories DBC into database
- Loading branch information
Showing
29 changed files
with
21,379 additions
and
245 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,17 @@ | ||
ALTER TABLE spell_template ADD `Category` INT UNSIGNED NOT NULL DEFAULT '0' AFTER SpellCategoriesId; | ||
ALTER TABLE spell_template ADD `DmgClass` INT UNSIGNED NOT NULL DEFAULT '0' AFTER Category; | ||
ALTER TABLE spell_template ADD `Dispel` INT UNSIGNED NOT NULL DEFAULT '0' AFTER DmgClass; | ||
ALTER TABLE spell_template ADD `Mechanic` INT UNSIGNED NOT NULL DEFAULT '0' AFTER Dispel; | ||
ALTER TABLE spell_template ADD `PreventionType` INT UNSIGNED NOT NULL DEFAULT '0' AFTER Mechanic; | ||
ALTER TABLE spell_template ADD `StartRecoveryCategory` INT UNSIGNED NOT NULL DEFAULT '0' AFTER PreventionType; | ||
|
||
UPDATE spell_template INNER JOIN spell_categories ON (spell_template.SpellCategoriesId = spell_categories.Id) SET spell_template.Category = spell_categories.Category; | ||
UPDATE spell_template INNER JOIN spell_categories ON (spell_template.SpellCategoriesId = spell_categories.Id) SET spell_template.DmgClass = spell_categories.DmgClass; | ||
UPDATE spell_template INNER JOIN spell_categories ON (spell_template.SpellCategoriesId = spell_categories.Id) SET spell_template.Dispel = spell_categories.Dispel; | ||
UPDATE spell_template INNER JOIN spell_categories ON (spell_template.SpellCategoriesId = spell_categories.Id) SET spell_template.Mechanic = spell_categories.Mechanic; | ||
UPDATE spell_template INNER JOIN spell_categories ON (spell_template.SpellCategoriesId = spell_categories.Id) SET spell_template.PreventionType = spell_categories.PreventionType; | ||
UPDATE spell_template INNER JOIN spell_categories ON (spell_template.SpellCategoriesId = spell_categories.Id) SET spell_template.StartRecoveryCategory = spell_categories.StartRecoveryCategory; | ||
|
||
ALTER TABLE spell_template DROP COLUMN SpellCategoriesId; | ||
|
||
DROP TABLE spell_categories; |
Oops, something went wrong.