From ac56f62684fee482e88509aff404962bd564ac87 Mon Sep 17 00:00:00 2001 From: nos4r2zod Date: Wed, 16 Sep 2009 12:32:00 +0400 Subject: [PATCH] [8504] Update old spell version to spell 21084 in some playercreate_* cases. Signed-off-by: VladimirMangos --- sql/mangos.sql | 10 +++++----- sql/updates/8504_01_mangos_playercreateinfo_spell.sql | 5 +++++ sql/updates/8504_02_mangos_playercreateinfo_action.sql | 5 +++++ sql/updates/Makefile.am | 4 ++++ src/shared/revision_nr.h | 2 +- src/shared/revision_sql.h | 2 +- 6 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 sql/updates/8504_01_mangos_playercreateinfo_spell.sql create mode 100644 sql/updates/8504_02_mangos_playercreateinfo_action.sql diff --git a/sql/mangos.sql b/sql/mangos.sql index a5fdf2b3b..f5049b4e2 100644 --- a/sql/mangos.sql +++ b/sql/mangos.sql @@ -24,7 +24,7 @@ CREATE TABLE `db_version` ( `version` varchar(120) default NULL, `creature_ai_version` varchar(120) default NULL, `cache_id` int(10) default '0', - `required_8499_01_mangos_spell_elixir` bit(1) default NULL + `required_8504_02_mangos_playercreateinfo_action` bit(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; -- @@ -9746,7 +9746,7 @@ INSERT INTO `playercreateinfo_action` VALUES (1,1,96,6603,0), (1,1,108,6603,0), (1,2,0,6603,0), -(1,2,1,20154,0), +(1,2,1,21084,0), (1,2,2,635,0), (1,2,9,59752,0), (1,2,10,159,128), @@ -9833,7 +9833,7 @@ INSERT INTO `playercreateinfo_action` VALUES (3,1,96,6603,0), (3,1,108,6603,0), (3,2,0,6603,0), -(3,2,1,20154,0), +(3,2,1,21084,0), (3,2,2,635,0), (3,2,3,20594,0), (3,2,4,2481,0), @@ -10295,7 +10295,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (1,2,9078,'Cloth'), (1,2,9116,'Shield'), (1,2,9125,'Generic'), -(1,2,20154,'Seal of Righteousness'), +(1,2,21084,'Seal of Righteousness'), (1,2,20597,'Sword Specialization'), (1,2,20598,'The Human Spirit'), (1,2,20599,'Diplomacy'), @@ -10882,7 +10882,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (3,2,9078,'Cloth'), (3,2,9116,'Shield'), (3,2,9125,'Generic'), -(3,2,20154,'Seal of Righteousness'), +(3,2,21084,'Seal of Righteousness'), (3,2,20594,'Stoneform'), (3,2,20595,'Gun Specialization'), (3,2,20596,'Frost Resistance'), diff --git a/sql/updates/8504_01_mangos_playercreateinfo_spell.sql b/sql/updates/8504_01_mangos_playercreateinfo_spell.sql new file mode 100644 index 000000000..44430211f --- /dev/null +++ b/sql/updates/8504_01_mangos_playercreateinfo_spell.sql @@ -0,0 +1,5 @@ +ALTER TABLE db_version CHANGE COLUMN required_8499_01_mangos_spell_elixir required_8504_01_mangos_playercreateinfo_spell bit; + +UPDATE `playercreateinfo_spell` + SET `spell` = 21084 + WHERE `spell` = 20154; diff --git a/sql/updates/8504_02_mangos_playercreateinfo_action.sql b/sql/updates/8504_02_mangos_playercreateinfo_action.sql new file mode 100644 index 000000000..31d561f07 --- /dev/null +++ b/sql/updates/8504_02_mangos_playercreateinfo_action.sql @@ -0,0 +1,5 @@ +ALTER TABLE db_version CHANGE COLUMN required_8504_01_mangos_playercreateinfo_spell required_8504_02_mangos_playercreateinfo_action bit; + +UPDATE `playercreateinfo_action` + SET `action` = 21084 + WHERE `action` = 20154 AND `type` = 0; diff --git a/sql/updates/Makefile.am b/sql/updates/Makefile.am index 8463f8149..719ee0ff7 100644 --- a/sql/updates/Makefile.am +++ b/sql/updates/Makefile.am @@ -107,6 +107,8 @@ pkgdata_DATA = \ 8488_02_mangos_spell_bonus_data.sql \ 8498_01_mangos_spell_proc_event.sql \ 8499_01_mangos_spell_elixir.sql \ + 8504_01_mangos_playercreateinfo_spell.sql \ + 8504_02_mangos_playercreateinfo_action.sql \ README ## Additional files to include when running 'make dist' @@ -194,4 +196,6 @@ EXTRA_DIST = \ 8488_02_mangos_spell_bonus_data.sql \ 8498_01_mangos_spell_proc_event.sql \ 8499_01_mangos_spell_elixir.sql \ + 8504_01_mangos_playercreateinfo_spell.sql \ + 8504_02_mangos_playercreateinfo_action.sql \ README diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index bb4be4aee..c74de2896 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8503" + #define REVISION_NR "8504" #endif // __REVISION_NR_H__ diff --git a/src/shared/revision_sql.h b/src/shared/revision_sql.h index 0bbec6660..93d248cf3 100644 --- a/src/shared/revision_sql.h +++ b/src/shared/revision_sql.h @@ -1,6 +1,6 @@ #ifndef __REVISION_SQL_H__ #define __REVISION_SQL_H__ #define REVISION_DB_CHARACTERS "required_8469_01_characters_character_spell" - #define REVISION_DB_MANGOS "required_8499_01_mangos_spell_elixir" + #define REVISION_DB_MANGOS "required_8504_02_mangos_playercreateinfo_action" #define REVISION_DB_REALMD "required_8332_01_realmd_realmcharacters" #endif // __REVISION_SQL_H__