[7075] Remove outdated original spells from character_spell. Update spell_learn_spell for one from original spells.

This commit is contained in:
VladimirMangos 2009-01-13 00:48:59 +03:00
parent f1b8c677fc
commit aff0fa1489
6 changed files with 28 additions and 4 deletions

View file

@ -21,7 +21,7 @@
DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_7067_03_characters_character_spell` bit(1) default NULL
`required_7075_01_characters_character_spell` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
--

View file

@ -22,7 +22,7 @@
DROP TABLE IF EXISTS `db_version`;
CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`required_7074_01_mangos_playercreateinfo_spell` bit(1) default NULL
`required_7075_02_mangos_spell_learn_spell` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@ -16117,7 +16117,8 @@ INSERT INTO `spell_learn_spell` VALUES
(40123,40121,0),
(40123,40122,0),
(53428,53341,1),
(53428,53343,1);
(53428,53343,1),
(58984,21009,1);
/*!40000 ALTER TABLE `spell_learn_spell` ENABLE KEYS */;

View file

@ -0,0 +1,13 @@
ALTER TABLE character_db_version CHANGE COLUMN required_7067_03_characters_character_spell required_7075_01_characters_character_spell bit;
DELETE FROM character_spell WHERE `spell` IN (
20580, /*old Shadowmeld*/
20600, /*Perception*/
21009, /*old Shadowmeld Passive and new Elusiveness (learned as racial passive)*/
21184 /*old Seal of Righteousness*/
);
/*old Shadow Resistance, leaned as racial passive of race 5 */
DELETE FROM character_spell USING character_spell INNER JOIN characters ON character_spell.guid = characters.guid
WHERE character_spell.spell = 20579 AND characters.race <> 5;

View file

@ -0,0 +1,6 @@
ALTER TABLE db_version CHANGE COLUMN required_7074_01_mangos_playercreateinfo_spell required_7075_02_mangos_spell_learn_spell bit;
DELETE FROM spell_learn_spell WHERE Entry = 58984;
INSERT INTO spell_learn_spell VALUES
(58984,21009,1);

View file

@ -133,6 +133,8 @@ pkgdata_DATA = \
7067_02_mangos_spell_learn_spell.sql \
7067_03_characters_character_spell.sql \
7074_01_mangos_playercreateinfo_spell.sql \
7075_01_characters_character_spell.sql \
7075_02_mangos_spell_learn_spell.sql \
README
## Additional files to include when running 'make dist'
@ -246,4 +248,6 @@ EXTRA_DIST = \
7067_02_mangos_spell_learn_spell.sql \
7067_03_characters_character_spell.sql \
7074_01_mangos_playercreateinfo_spell.sql \
7075_01_characters_character_spell.sql \
7075_02_mangos_spell_learn_spell.sql \
README

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7074"
#define REVISION_NR "7075"
#endif // __REVISION_NR_H__