diff --git a/sql/updates/6360_characters_characters.sql b/sql/updates/06360_characters_characters.sql similarity index 98% rename from sql/updates/6360_characters_characters.sql rename to sql/updates/06360_characters_characters.sql index 2d51514ec..405682074 100644 --- a/sql/updates/6360_characters_characters.sql +++ b/sql/updates/06360_characters_characters.sql @@ -1,6 +1,6 @@ -UPDATE characters SET data = REPLACE(data,' ',' '); -UPDATE characters SET data = CONCAT(TRIM(data),' '); - -UPDATE characters -SET data=CONCAT(SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',1396),' ',-1396),' ','0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0',' ',SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',1529),' ',-133)) -WHERE SUBSTRING_INDEX(data,' ',1528) = data AND SUBSTRING_INDEX(data,' ',1527) <> data; +UPDATE characters SET data = REPLACE(data,' ',' '); +UPDATE characters SET data = CONCAT(TRIM(data),' '); + +UPDATE characters +SET data=CONCAT(SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',1396),' ',-1396),' ','0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0',' ',SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',1529),' ',-133)) +WHERE SUBSTRING_INDEX(data,' ',1528) = data AND SUBSTRING_INDEX(data,' ',1527) <> data; diff --git a/sql/updates/6360_characters_corpse.sql b/sql/updates/06360_characters_corpse.sql similarity index 98% rename from sql/updates/6360_characters_corpse.sql rename to sql/updates/06360_characters_corpse.sql index 60db60a58..d841522a1 100644 --- a/sql/updates/6360_characters_corpse.sql +++ b/sql/updates/06360_characters_corpse.sql @@ -1,6 +1,6 @@ -UPDATE corpse SET data = REPLACE(data,' ',' '); -UPDATE corpse SET data = CONCAT(TRIM(data),' '); - -UPDATE corpse -SET data=CONCAT(SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',8),' ',-8),' ','0 0',' ',SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',39),' ',-31)) -WHERE SUBSTRING_INDEX(data,' ',38) = data AND SUBSTRING_INDEX(data,' ',37) <> data; +UPDATE corpse SET data = REPLACE(data,' ',' '); +UPDATE corpse SET data = CONCAT(TRIM(data),' '); + +UPDATE corpse +SET data=CONCAT(SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',8),' ',-8),' ','0 0',' ',SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',39),' ',-31)) +WHERE SUBSTRING_INDEX(data,' ',38) = data AND SUBSTRING_INDEX(data,' ',37) <> data; diff --git a/sql/updates/6362_characters.sql b/sql/updates/06362_characters.sql similarity index 97% rename from sql/updates/6362_characters.sql rename to sql/updates/06362_characters.sql index 7907025a9..761a6ce4c 100644 --- a/sql/updates/6362_characters.sql +++ b/sql/updates/06362_characters.sql @@ -1,34 +1,34 @@ -TRUNCATE `character_instance`; -TRUNCATE `instance`; - -ALTER TABLE `character_instance` - DROP KEY `leader`, - DROP PRIMARY KEY, - ADD PRIMARY KEY `guid` (`guid`,`instance`), - DROP COLUMN `map`, - DROP COLUMN `leader`, - MODIFY COLUMN `instance` int(11) unsigned NOT NULL default '0', - ADD COLUMN `permanent` tinyint(1) unsigned NOT NULL default '0'; - -ALTER TABLE `instance` - ADD COLUMN `difficulty` tinyint(1) unsigned NOT NULL default '0' AFTER `resettime`; - -CREATE TABLE `group_instance` ( - `leaderGuid` int(11) unsigned NOT NULL default '0', - `instance` int(11) unsigned NOT NULL default '0', - `permanent` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`leaderGuid`,`instance`), - KEY `instance` (`instance`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `instance_reset` ( - `mapid` int(11) unsigned NOT NULL default '0', - `resettime` bigint(40) NOT NULL default '0', - PRIMARY KEY (`mapid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -ALTER TABLE `groups` - ADD COLUMN `difficulty` tinyint(3) unsigned NOT NULL default '0' AFTER `isRaid`; - -ALTER TABLE `characters` +TRUNCATE `character_instance`; +TRUNCATE `instance`; + +ALTER TABLE `character_instance` + DROP KEY `leader`, + DROP PRIMARY KEY, + ADD PRIMARY KEY `guid` (`guid`,`instance`), + DROP COLUMN `map`, + DROP COLUMN `leader`, + MODIFY COLUMN `instance` int(11) unsigned NOT NULL default '0', + ADD COLUMN `permanent` tinyint(1) unsigned NOT NULL default '0'; + +ALTER TABLE `instance` + ADD COLUMN `difficulty` tinyint(1) unsigned NOT NULL default '0' AFTER `resettime`; + +CREATE TABLE `group_instance` ( + `leaderGuid` int(11) unsigned NOT NULL default '0', + `instance` int(11) unsigned NOT NULL default '0', + `permanent` tinyint(1) unsigned NOT NULL default '0', + PRIMARY KEY (`leaderGuid`,`instance`), + KEY `instance` (`instance`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE `instance_reset` ( + `mapid` int(11) unsigned NOT NULL default '0', + `resettime` bigint(40) NOT NULL default '0', + PRIMARY KEY (`mapid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +ALTER TABLE `groups` + ADD COLUMN `difficulty` tinyint(3) unsigned NOT NULL default '0' AFTER `isRaid`; + +ALTER TABLE `characters` ADD COLUMN `dungeon_difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0' AFTER `map`; \ No newline at end of file diff --git a/sql/updates/6362_mangos_instance_template.sql b/sql/updates/06362_mangos_instance_template.sql similarity index 100% rename from sql/updates/6362_mangos_instance_template.sql rename to sql/updates/06362_mangos_instance_template.sql diff --git a/sql/updates/6367_mangos_spell_proc_event.sql b/sql/updates/06367_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6367_mangos_spell_proc_event.sql rename to sql/updates/06367_mangos_spell_proc_event.sql diff --git a/sql/updates/6369_mangos_spell_affect.sql b/sql/updates/06369_mangos_spell_affect.sql similarity index 100% rename from sql/updates/6369_mangos_spell_affect.sql rename to sql/updates/06369_mangos_spell_affect.sql diff --git a/sql/updates/6370_mangos_spell_affect.sql b/sql/updates/06370_mangos_spell_affect.sql similarity index 97% rename from sql/updates/6370_mangos_spell_affect.sql rename to sql/updates/06370_mangos_spell_affect.sql index 33b575804..460c61418 100644 --- a/sql/updates/6370_mangos_spell_affect.sql +++ b/sql/updates/06370_mangos_spell_affect.sql @@ -1,4 +1,4 @@ -DELETE FROM spell_affect WHERE entry = 8875 AND effectId = 1 LIMIT 1; - -INSERT INTO spell_affect ( entry , effectId , SpellFamilyMask ) VALUES -(8875, 1, 0x40000000000); +DELETE FROM spell_affect WHERE entry = 8875 AND effectId = 1 LIMIT 1; + +INSERT INTO spell_affect ( entry , effectId , SpellFamilyMask ) VALUES +(8875, 1, 0x40000000000); diff --git a/sql/updates/6381_mangos_command.sql b/sql/updates/06381_mangos_command.sql similarity index 100% rename from sql/updates/6381_mangos_command.sql rename to sql/updates/06381_mangos_command.sql diff --git a/sql/updates/6387_characters_character_ticket.sql b/sql/updates/06387_characters_character_ticket.sql similarity index 100% rename from sql/updates/6387_characters_character_ticket.sql rename to sql/updates/06387_characters_character_ticket.sql diff --git a/sql/updates/6387_mangos_mangos_string.sql b/sql/updates/06387_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6387_mangos_mangos_string.sql rename to sql/updates/06387_mangos_mangos_string.sql diff --git a/sql/updates/6397_mangos_creature_template.sql b/sql/updates/06397_mangos_creature_template.sql similarity index 100% rename from sql/updates/6397_mangos_creature_template.sql rename to sql/updates/06397_mangos_creature_template.sql diff --git a/sql/updates/6398_mangos_creature_template.sql b/sql/updates/06398_mangos_creature_template.sql similarity index 100% rename from sql/updates/6398_mangos_creature_template.sql rename to sql/updates/06398_mangos_creature_template.sql diff --git a/sql/updates/6412_characters_declinedname.sql b/sql/updates/06412_characters_declinedname.sql similarity index 100% rename from sql/updates/6412_characters_declinedname.sql rename to sql/updates/06412_characters_declinedname.sql diff --git a/sql/updates/6426_mangos_locales.sql b/sql/updates/06426_mangos_locales.sql similarity index 100% rename from sql/updates/6426_mangos_locales.sql rename to sql/updates/06426_mangos_locales.sql diff --git a/sql/updates/6426_realmd_localization.sql b/sql/updates/06426_realmd_localization.sql similarity index 100% rename from sql/updates/6426_realmd_localization.sql rename to sql/updates/06426_realmd_localization.sql diff --git a/sql/updates/6431_mangos_mangos_string.sql b/sql/updates/06431_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6431_mangos_mangos_string.sql rename to sql/updates/06431_mangos_mangos_string.sql diff --git a/sql/updates/6439_mangos_command.sql b/sql/updates/06439_mangos_command.sql similarity index 100% rename from sql/updates/6439_mangos_command.sql rename to sql/updates/06439_mangos_command.sql diff --git a/sql/updates/6456_mangos_command.sql b/sql/updates/06456_mangos_command.sql similarity index 100% rename from sql/updates/6456_mangos_command.sql rename to sql/updates/06456_mangos_command.sql diff --git a/sql/updates/6472_realmd_account.sql b/sql/updates/06472_realmd_account.sql similarity index 100% rename from sql/updates/6472_realmd_account.sql rename to sql/updates/06472_realmd_account.sql diff --git a/sql/updates/6492_mangos_spell_chain.sql b/sql/updates/06492_mangos_spell_chain.sql similarity index 100% rename from sql/updates/6492_mangos_spell_chain.sql rename to sql/updates/06492_mangos_spell_chain.sql diff --git a/sql/updates/6496_mangos_spell_pet_auras.sql b/sql/updates/06496_mangos_spell_pet_auras.sql similarity index 96% rename from sql/updates/6496_mangos_spell_pet_auras.sql rename to sql/updates/06496_mangos_spell_pet_auras.sql index ef1086de6..152730a5a 100644 --- a/sql/updates/6496_mangos_spell_pet_auras.sql +++ b/sql/updates/06496_mangos_spell_pet_auras.sql @@ -1,56 +1,56 @@ --- --- Table structure for table `spell_pet_auras` --- - -DROP TABLE IF EXISTS `spell_pet_auras`; -CREATE TABLE `spell_pet_auras` ( - `spell` mediumint(8) unsigned NOT NULL COMMENT 'dummy spell id', - `pet` mediumint(8) unsigned NOT NULL default '0' COMMENT 'pet id; 0 = all', - `aura` mediumint(8) unsigned NOT NULL COMMENT 'pet aura id', - PRIMARY KEY (`spell`,`pet`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; - --- --- Dumping data for table `spell_pet_auras` --- - -LOCK TABLES `spell_pet_auras` WRITE; -/*!40000 ALTER TABLE `spell_pet_auras` DISABLE KEYS */; -INSERT INTO `spell_pet_auras` VALUES -(19028, 0, 25228), -(19578, 0, 19579), -(20895, 0, 24529), -(28757, 0, 28758), -(35029, 0, 35060), -(35030, 0, 35061), -(35691, 0, 35696), -(35692, 0, 35696), -(35693, 0, 35696), -(23785, 416, 23759), -(23822, 416, 23826), -(23823, 416, 23827), -(23824, 416, 23828), -(23825, 416, 23829), -(23785, 417, 23762), -(23822, 417, 23837), -(23823, 417, 23838), -(23824, 417, 23839), -(23825, 417, 23840), -(23785, 1860, 23760), -(23822, 1860, 23841), -(23823, 1860, 23842), -(23824, 1860, 23843), -(23825, 1860, 23844), -(23785, 1863, 23761), -(23822, 1863, 23833), -(23823, 1863, 23834), -(23824, 1863, 23835), -(23825, 1863, 23836), -(23785, 17252, 35702), -(23822, 17252, 35703), -(23823, 17252, 35704), -(23824, 17252, 35705), -(23825, 17252, 35706); - -/*!40000 ALTER TABLE `spell_pet_auras` ENABLE KEYS */; +-- +-- Table structure for table `spell_pet_auras` +-- + +DROP TABLE IF EXISTS `spell_pet_auras`; +CREATE TABLE `spell_pet_auras` ( + `spell` mediumint(8) unsigned NOT NULL COMMENT 'dummy spell id', + `pet` mediumint(8) unsigned NOT NULL default '0' COMMENT 'pet id; 0 = all', + `aura` mediumint(8) unsigned NOT NULL COMMENT 'pet aura id', + PRIMARY KEY (`spell`,`pet`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- Dumping data for table `spell_pet_auras` +-- + +LOCK TABLES `spell_pet_auras` WRITE; +/*!40000 ALTER TABLE `spell_pet_auras` DISABLE KEYS */; +INSERT INTO `spell_pet_auras` VALUES +(19028, 0, 25228), +(19578, 0, 19579), +(20895, 0, 24529), +(28757, 0, 28758), +(35029, 0, 35060), +(35030, 0, 35061), +(35691, 0, 35696), +(35692, 0, 35696), +(35693, 0, 35696), +(23785, 416, 23759), +(23822, 416, 23826), +(23823, 416, 23827), +(23824, 416, 23828), +(23825, 416, 23829), +(23785, 417, 23762), +(23822, 417, 23837), +(23823, 417, 23838), +(23824, 417, 23839), +(23825, 417, 23840), +(23785, 1860, 23760), +(23822, 1860, 23841), +(23823, 1860, 23842), +(23824, 1860, 23843), +(23825, 1860, 23844), +(23785, 1863, 23761), +(23822, 1863, 23833), +(23823, 1863, 23834), +(23824, 1863, 23835), +(23825, 1863, 23836), +(23785, 17252, 35702), +(23822, 17252, 35703), +(23823, 17252, 35704), +(23824, 17252, 35705), +(23825, 17252, 35706); + +/*!40000 ALTER TABLE `spell_pet_auras` ENABLE KEYS */; UNLOCK TABLES; \ No newline at end of file diff --git a/sql/updates/6506_mangos_spell_proc_event.sql b/sql/updates/06506_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6506_mangos_spell_proc_event.sql rename to sql/updates/06506_mangos_spell_proc_event.sql diff --git a/sql/updates/6509_mangos_command.sql b/sql/updates/06509_mangos_command.sql similarity index 100% rename from sql/updates/6509_mangos_command.sql rename to sql/updates/06509_mangos_command.sql diff --git a/sql/updates/6509_mangos_mangos_string.sql b/sql/updates/06509_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6509_mangos_mangos_string.sql rename to sql/updates/06509_mangos_mangos_string.sql diff --git a/sql/updates/6513_mangos_command.sql b/sql/updates/06513_mangos_command.sql similarity index 100% rename from sql/updates/6513_mangos_command.sql rename to sql/updates/06513_mangos_command.sql diff --git a/sql/updates/6515_mangos_spell_proc_event.sql b/sql/updates/06515_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6515_mangos_spell_proc_event.sql rename to sql/updates/06515_mangos_spell_proc_event.sql diff --git a/sql/updates/6521_mangos_spell_proc_event.sql b/sql/updates/06521_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6521_mangos_spell_proc_event.sql rename to sql/updates/06521_mangos_spell_proc_event.sql diff --git a/sql/updates/6523_mangos_spell_proc_event.sql b/sql/updates/06523_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6523_mangos_spell_proc_event.sql rename to sql/updates/06523_mangos_spell_proc_event.sql diff --git a/sql/updates/6528_mangos_spell_affect.sql b/sql/updates/06528_mangos_spell_affect.sql similarity index 100% rename from sql/updates/6528_mangos_spell_affect.sql rename to sql/updates/06528_mangos_spell_affect.sql diff --git a/sql/updates/6528_mangos_spell_proc_event.sql b/sql/updates/06528_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6528_mangos_spell_proc_event.sql rename to sql/updates/06528_mangos_spell_proc_event.sql diff --git a/sql/updates/6538_mangos_spell_proc_event.sql b/sql/updates/06538_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6538_mangos_spell_proc_event.sql rename to sql/updates/06538_mangos_spell_proc_event.sql diff --git a/sql/updates/6540_mangos_spell_proc_event.sql b/sql/updates/06540_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6540_mangos_spell_proc_event.sql rename to sql/updates/06540_mangos_spell_proc_event.sql diff --git a/sql/updates/6544_mangos_spell_proc_event.sql b/sql/updates/06544_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6544_mangos_spell_proc_event.sql rename to sql/updates/06544_mangos_spell_proc_event.sql diff --git a/sql/updates/6545_mangos_command.sql b/sql/updates/06545_mangos_command.sql similarity index 100% rename from sql/updates/6545_mangos_command.sql rename to sql/updates/06545_mangos_command.sql diff --git a/sql/updates/6557_mangos_command.sql b/sql/updates/06557_mangos_command.sql similarity index 100% rename from sql/updates/6557_mangos_command.sql rename to sql/updates/06557_mangos_command.sql diff --git a/sql/updates/6574_mangos_spell_proc_event.sql b/sql/updates/06574_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6574_mangos_spell_proc_event.sql rename to sql/updates/06574_mangos_spell_proc_event.sql diff --git a/sql/updates/6585_mangos_command.sql b/sql/updates/06585_mangos_command.sql similarity index 100% rename from sql/updates/6585_mangos_command.sql rename to sql/updates/06585_mangos_command.sql diff --git a/sql/updates/6588_mangos_spell_proc_event.sql b/sql/updates/06588_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6588_mangos_spell_proc_event.sql rename to sql/updates/06588_mangos_spell_proc_event.sql diff --git a/sql/updates/6596_characters_arena_team.sql b/sql/updates/06596_characters_arena_team.sql similarity index 100% rename from sql/updates/6596_characters_arena_team.sql rename to sql/updates/06596_characters_arena_team.sql diff --git a/sql/updates/6598_character_spell.sql b/sql/updates/06598_character_spell.sql similarity index 100% rename from sql/updates/6598_character_spell.sql rename to sql/updates/06598_character_spell.sql diff --git a/sql/updates/6609_mangos_mangos_string.sql b/sql/updates/06609_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6609_mangos_mangos_string.sql rename to sql/updates/06609_mangos_mangos_string.sql diff --git a/sql/updates/6613_mangos_mangos_string.sql b/sql/updates/06613_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6613_mangos_mangos_string.sql rename to sql/updates/06613_mangos_mangos_string.sql diff --git a/sql/updates/6627_mangos_creature_movement.sql b/sql/updates/06627_mangos_creature_movement.sql similarity index 100% rename from sql/updates/6627_mangos_creature_movement.sql rename to sql/updates/06627_mangos_creature_movement.sql diff --git a/sql/updates/6640_mangos_reference_loot_template.sql b/sql/updates/06640_mangos_reference_loot_template.sql similarity index 100% rename from sql/updates/6640_mangos_reference_loot_template.sql rename to sql/updates/06640_mangos_reference_loot_template.sql diff --git a/sql/updates/6642_characters_declinedname.sql b/sql/updates/06642_characters_declinedname.sql similarity index 100% rename from sql/updates/6642_characters_declinedname.sql rename to sql/updates/06642_characters_declinedname.sql diff --git a/sql/updates/6668_mangos_spell_proc_event.sql b/sql/updates/06668_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6668_mangos_spell_proc_event.sql rename to sql/updates/06668_mangos_spell_proc_event.sql diff --git a/sql/updates/6673_mangos_areatrigger_scripts.sql b/sql/updates/06673_mangos_areatrigger_scripts.sql similarity index 100% rename from sql/updates/6673_mangos_areatrigger_scripts.sql rename to sql/updates/06673_mangos_areatrigger_scripts.sql diff --git a/sql/updates/6676_mangos_spell_proc_event.sql b/sql/updates/06676_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6676_mangos_spell_proc_event.sql rename to sql/updates/06676_mangos_spell_proc_event.sql diff --git a/sql/updates/6681_mangos_mangos_string.sql b/sql/updates/06681_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6681_mangos_mangos_string.sql rename to sql/updates/06681_mangos_mangos_string.sql diff --git a/sql/updates/6691_mangos_spell_proc_event.sql b/sql/updates/06691_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6691_mangos_spell_proc_event.sql rename to sql/updates/06691_mangos_spell_proc_event.sql diff --git a/sql/updates/6693_mangos_spell_affect.sql b/sql/updates/06693_mangos_spell_affect.sql similarity index 100% rename from sql/updates/6693_mangos_spell_affect.sql rename to sql/updates/06693_mangos_spell_affect.sql diff --git a/sql/updates/6693_mangos_spell_proc_event.sql b/sql/updates/06693_mangos_spell_proc_event.sql similarity index 100% rename from sql/updates/6693_mangos_spell_proc_event.sql rename to sql/updates/06693_mangos_spell_proc_event.sql diff --git a/sql/updates/6698_characters_character_tutorial.sql b/sql/updates/06698_characters_character_tutorial.sql similarity index 100% rename from sql/updates/6698_characters_character_tutorial.sql rename to sql/updates/06698_characters_character_tutorial.sql diff --git a/sql/updates/6701_mangos_command.sql b/sql/updates/06701_mangos_command.sql similarity index 100% rename from sql/updates/6701_mangos_command.sql rename to sql/updates/06701_mangos_command.sql diff --git a/sql/updates/6701_mangos_mangos_string.sql b/sql/updates/06701_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6701_mangos_mangos_string.sql rename to sql/updates/06701_mangos_mangos_string.sql diff --git a/sql/updates/6708_mangos_mangos_string.sql b/sql/updates/06708_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6708_mangos_mangos_string.sql rename to sql/updates/06708_mangos_mangos_string.sql diff --git a/sql/updates/6715_mangos_spell_affect.sql b/sql/updates/06715_mangos_spell_affect.sql similarity index 100% rename from sql/updates/6715_mangos_spell_affect.sql rename to sql/updates/06715_mangos_spell_affect.sql diff --git a/sql/updates/6728_mangos_quest_template.sql b/sql/updates/06728_mangos_quest_template.sql similarity index 100% rename from sql/updates/6728_mangos_quest_template.sql rename to sql/updates/06728_mangos_quest_template.sql diff --git a/sql/updates/6730_mangos_mangos_string.sql b/sql/updates/06730_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6730_mangos_mangos_string.sql rename to sql/updates/06730_mangos_mangos_string.sql diff --git a/sql/updates/6740_characters_characters.sql b/sql/updates/06740_characters_characters.sql similarity index 100% rename from sql/updates/6740_characters_characters.sql rename to sql/updates/06740_characters_characters.sql diff --git a/sql/updates/6740_mangos_command.sql b/sql/updates/06740_mangos_command.sql similarity index 100% rename from sql/updates/6740_mangos_command.sql rename to sql/updates/06740_mangos_command.sql diff --git a/sql/updates/6740_mangos_mangos_string.sql b/sql/updates/06740_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6740_mangos_mangos_string.sql rename to sql/updates/06740_mangos_mangos_string.sql diff --git a/sql/updates/6742_mangos_command.sql b/sql/updates/06742_mangos_command.sql similarity index 100% rename from sql/updates/6742_mangos_command.sql rename to sql/updates/06742_mangos_command.sql diff --git a/sql/updates/6742_mangos_mangos_string.sql b/sql/updates/06742_mangos_mangos_string.sql similarity index 100% rename from sql/updates/6742_mangos_mangos_string.sql rename to sql/updates/06742_mangos_mangos_string.sql diff --git a/sql/updates/6748_mangos_mangos_string.sql b/sql/updates/06748_mangos_mangos_string.sql similarity index 97% rename from sql/updates/6748_mangos_mangos_string.sql rename to sql/updates/06748_mangos_mangos_string.sql index 8be0f0936..5c0e71f41 100644 --- a/sql/updates/6748_mangos_mangos_string.sql +++ b/sql/updates/06748_mangos_mangos_string.sql @@ -1 +1 @@ -DELETE FROM mangos_string WHERE entry IN (800); +DELETE FROM mangos_string WHERE entry IN (800); diff --git a/sql/updates/6750_mangos_command.sql b/sql/updates/06750_mangos_command.sql similarity index 98% rename from sql/updates/6750_mangos_command.sql rename to sql/updates/06750_mangos_command.sql index 7b2651071..100185c0a 100644 --- a/sql/updates/6750_mangos_command.sql +++ b/sql/updates/06750_mangos_command.sql @@ -1,3 +1,3 @@ -DELETE FROM command WHERE name = 'reload all_locales'; -INSERT INTO `command` VALUES -('reload all_locales',3,'Syntax: .reload all_locales\r\n\r\nReload all `locales_*` tables with reload support added and that can be _safe_ reloaded.'); +DELETE FROM command WHERE name = 'reload all_locales'; +INSERT INTO `command` VALUES +('reload all_locales',3,'Syntax: .reload all_locales\r\n\r\nReload all `locales_*` tables with reload support added and that can be _safe_ reloaded.'); diff --git a/sql/updates/6751_realmd_account.sql b/sql/updates/06751_realmd_account.sql similarity index 100% rename from sql/updates/6751_realmd_account.sql rename to sql/updates/06751_realmd_account.sql diff --git a/sql/updates/6760_mangos_creature_template.sql b/sql/updates/06760_mangos_creature_template.sql similarity index 100% rename from sql/updates/6760_mangos_creature_template.sql rename to sql/updates/06760_mangos_creature_template.sql diff --git a/sql/updates/README b/sql/updates/README index b76a62b77..39dc777b9 100644 --- a/sql/updates/README +++ b/sql/updates/README @@ -12,22 +12,25 @@ To see if you need an update, the file names have been given a fixed structure that should enable you to see if you need an update or not. === File name descriptin === -File names are divided into two parts. First part is the revision that will be -compatible with database after apply update. The second part of the name, -is the table that needs and update or has been added. See an example below: +File names are divided into two parts. First part is the date+counter +that show commit apply date that will be compatible with database after apply update. +The second part of the name, is the table that needs and update or has been added. +See an example below: - 1123_characters_character_spell.sql - | | | - | | | - | | The table character_spell - | | will need an update. - | | - | Name of affected DB (default recommended name) - | Can be: characters, mangos, realmd + 2008_10_17_01_characters_character_spell.sql + | | | | + | | | | + | | | The table character_spell + | | | will need an update. + | | | + | | Name of affected DB (default recommended name) + | | Can be: characters, mangos, realmd + | | + | Counter show number of sql update in updates list for provided data + | and set proper order for sql updates for some date | - MaNGOS revision older 1123 will need this update. - After appling this update DB compatiable with revision 1122 - will be compatibale with revision 1123. - Revision 1123 and any revision after 1123, e.g. 1124 or 1137, - already includes this update in the default database - file mangos.sql. + MaNGOS commit date related to sql update. For related commit + you can see http://github.com/mangos/mangos/commits/master + Expected commit will be in commits list for provided date and it will have + sql update file name (2008_10_17_01_characters_character_spell.sql in our case) in list + changed files, After appling this update DB compatiable with found commit.