(TDB 335.49) Also move 4.x-only SQLs to the old directory

This commit is contained in:
Nay committed 2012-09-15 21:18:23 +01:00
1 parent 06f96f47e7
commit a95511f35e
39 files changed

No files matched your search

@@ -0,0 +1,5 @@
ALTER TABLE `character_stats`
ADD COLUMN `maxpower8` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `maxpower7`,
ADD COLUMN `maxpower9` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `maxpower8`,
ADD COLUMN `maxpower10` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `maxpower9`,
ADD COLUMN `maxpower11` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `maxpower10`;
@@ -0,0 +1,5 @@
ALTER TABLE `characters`
ADD COLUMN `power8` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `power7`,
ADD COLUMN `power9` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `power8`,
ADD COLUMN `power10` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `power9`,
ADD COLUMN `power11` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `power10`;
@@ -0,0 +1 @@
ALTER TABLE `character_pet` DROP COLUMN `curhappiness`;
@@ -0,0 +1,7 @@
ALTER TABLE `character_stats`
DROP COLUMN `maxpower6`,
DROP COLUMN `maxpower7`,
DROP COLUMN `maxpower8`,
DROP COLUMN `maxpower9`,
DROP COLUMN `maxpower10`,
DROP COLUMN `maxpower11`;
@@ -0,0 +1,9 @@
ALTER TABLE `characters`
DROP COLUMN `power6`,
DROP COLUMN `power7`,
DROP COLUMN `power8`,
DROP COLUMN `power9`,
DROP COLUMN `power10`,
DROP COLUMN `power11`,
DROP COLUMN `ammoId`,
ADD COLUMN `guildId` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `grantableLevels`;
@@ -0,0 +1 @@
ALTER TABLE `corpse` DROP COLUMN `guildId`;
@@ -0,0 +1,5 @@
ALTER TABLE `characters`
DROP COLUMN `todayHonorPoints`,
DROP COLUMN `yesterdayHonorPoints`,
DROP COLUMN `knownCurrencies`,
CHANGE COLUMN `arenaPoints` `conquestPoints` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `taxi_path`;
@@ -0,0 +1 @@
ALTER TABLE `account` CHANGE COLUMN `expansion` `expansion` tinyint(3) unsigned NOT NULL DEFAULT '3';
@@ -0,0 +1 @@
ALTER TABLE `characters` ADD `talentTree` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `resettalents_time`;
@@ -0,0 +1,2 @@
ALTER TABLE `characters` CHANGE `talentTree` `talentTree` varchar(10) NOT NULL DEFAULT '0 0 ' AFTER `resettalents_time`;
UPDATE `characters` SET `talentTree`='0 0 ';
@@ -0,0 +1,2 @@
-- Remove unused flag
UPDATE `characters` SET `extra_flags`=`extra_flags`&~0x40;
@@ -0,0 +1,24 @@
--
-- Table structure for table `guild_achievement`
--
DROP TABLE IF EXISTS `guild_achievement`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_achievement` (
`guildId` int(10) unsigned NOT NULL,
`achievement` smallint(5) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL DEFAULT '0',
`guids` text NOT NULL DEFAULT '',
PRIMARY KEY (`guildId`,`achievement`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `guild_achievement`
--
LOCK TABLES `guild_achievement` WRITE;
/*!40000 ALTER TABLE `guild_achievement` DISABLE KEYS */;
/*!40000 ALTER TABLE `guild_achievement` ENABLE KEYS */;
UNLOCK TABLES;
@@ -0,0 +1,25 @@
--
-- Table structure for table `guild_achievement_progress`
--
DROP TABLE IF EXISTS `guild_achievement_progress`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_achievement_progress` (
`guildId` int(10) unsigned NOT NULL,
`criteria` smallint(5) unsigned NOT NULL,
`counter` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL DEFAULT '0',
`completedGuid` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guildId`,`criteria`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `guild_achievement_progress`
--
LOCK TABLES `guild_achievement_progress` WRITE;
/*!40000 ALTER TABLE `guild_achievement_progress` DISABLE KEYS */;
/*!40000 ALTER TABLE `guild_achievement_progress` ENABLE KEYS */;
UNLOCK TABLES;
@@ -0,0 +1,4 @@
ALTER TABLE `character_glyphs`
ADD `glyph7` smallint(5) unsigned DEFAULT '0' AFTER `glyph6`,
ADD `glyph8` smallint(5) unsigned DEFAULT '0' AFTER `glyph7`,
ADD `glyph9` smallint(5) unsigned DEFAULT '0' AFTER `glyph8`;
@@ -0,0 +1 @@
ALTER TABLE `characters` DROP `guildId`;
@@ -0,0 +1 @@
UPDATE `realmlist` SET `gamebuild`=15595 WHERE `id`=1;
@@ -0,0 +1,3 @@
ALTER TABLE `characters` CHANGE `money` `money` bigint(20) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `mail` CHANGE `money` `money` bigint(20) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `mail` CHANGE `cod` `cod` bigint(20) unsigned NOT NULL DEFAULT '0';
@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `void_storage`;
CREATE TABLE IF NOT EXISTS `void_storage` (
`itemId` bigint(20) unsigned NOT NULL,
`playerGuid` int(10) unsigned NOT NULL,
`itemEntry` mediumint(8) unsigned NOT NULL,
`slot` tinyint(3) unsigned NOT NULL,
`creatorGuid` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`itemId`),
UNIQUE KEY `idx_player_slot` (`playerGuid`,`slot`),
KEY `idx_player` (`playerGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -0,0 +1,2 @@
ALTER TABLE `void_storage` ADD `randomProperty` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `void_storage` ADD `suffixFactor` int(10) unsigned NOT NULL DEFAULT '0';
@@ -0,0 +1,11 @@
UPDATE `item_instance` SET `enchantments` = REPLACE(`enchantments`,' ',' ');
UPDATE `item_instance` SET `enchantments` = CONCAT(TRIM(`enchantments`),' ');
UPDATE `item_instance` SET `enchantments` = CONCAT(
SUBSTRING_INDEX(`enchantments`, ' ', 7*3),
' 0 0 0 0 0 0 0 0 0 ',
SUBSTRING_INDEX(`enchantments`, ' ', -(12-7)*3 - 1))
WHERE (LENGTH(`enchantments`) - LENGTH(REPLACE(`enchantments`, ' ', ''))) = 12*3;
UPDATE `item_instance` SET `enchantments` = REPLACE(`enchantments`,' ',' ');
UPDATE `item_instance` SET `enchantments` = CONCAT(TRIM(`enchantments`),' ');
@@ -0,0 +1,2 @@
UPDATE characters SET drunk = (drunk / 256) & 0xFF;
ALTER TABLE characters CHANGE drunk drunk tinyint(3) unsigned NOT NULL DEFAULT '0';
@@ -0,0 +1 @@
RENAME TABLE `void_storage` TO `character_void_storage`;
@@ -0,0 +1,5 @@
DELETE FROM `spell_script_names` WHERE `spell_id` IN (2912,5176,78674);
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(2912, 'spell_dru_eclipse_energize'),
(5176, 'spell_dru_eclipse_energize'),
(78674, 'spell_dru_eclipse_energize');
@@ -0,0 +1 @@
ALTER TABLE `quest_template` CHANGE `RequiredRaces` `RequiredRaces` mediumint(8) unsigned NOT NULL DEFAULT '0';
@@ -0,0 +1 @@
ALTER TABLE `characters` ADD `slot` TINYINT UNSIGNED NOT NULL DEFAULT '0' AFTER `name`;
@@ -0,0 +1,4 @@
ALTER TABLE guild_member ADD BankResetTimeTab6 INT(10) unsigned DEFAULT '0' AFTER BankRemSlotsTab5;
ALTER TABLE guild_member ADD BankRemSlotsTab6 INT(10) unsigned DEFAULT '0' AFTER BankResetTimeTab6;
ALTER TABLE guild_member ADD BankResetTimeTab7 INT(10) unsigned DEFAULT '0' AFTER BankRemSlotsTab6;
ALTER TABLE guild_member ADD BankRemSlotsTab7 INT(10) unsigned DEFAULT '0' AFTER BankResetTimeTab7;
@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `spell_id`=15473;
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(15473,'spell_pri_shadowform');
@@ -0,0 +1 @@
DELETE FROM `guild_bank_eventlog` WHERE `EventType` IN (3,7) AND `TabId`=`DestTabId`; -- delete log entries of item moves within one tab
@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `character_currency`;
CREATE TABLE `character_currency` (
`guid` int(10) unsigned NOT NULL,
`currency` smallint(5) unsigned NOT NULL,
`total_count` int(10) unsigned NOT NULL,
`week_count` int(10) unsigned NOT NULL,
PRIMARY KEY (`guid`,`currency`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -0,0 +1,3 @@
-- porting from characters table
INSERT INTO `character_currency` (`guid`, `currency`, `total_count`, `week_count`) SELECT `characters`.`guid`, 392, `characters`.`totalHonorPoints`, 0 FROM `characters` WHERE `characters`.`totalHonorPoints` > 0;
INSERT INTO `character_currency` (`guid`, `currency`, `total_count`, `week_count`) SELECT `characters`.`guid`, 390, `characters`.`conquestPoints`, 0 FROM `characters` WHERE `characters`.`conquestPoints` > 0;
@@ -0,0 +1,2 @@
ALTER TABLE `characters` DROP `conquestPoints`;
ALTER TABLE `characters` DROP `totalHonorPoints`;
@@ -0,0 +1,19 @@
DROP TABLE IF EXISTS `character_cuf_profiles`;
CREATE TABLE IF NOT EXISTS `character_cuf_profiles` (
`guid` int(10) unsigned NOT NULL COMMENT 'Character Guid',
`id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-4)',
`name` varchar(12) NOT NULL COMMENT 'Profile Name',
`frameHeight` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Height',
`frameWidth` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Width',
`sortBy` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Frame Sort By',
`healthText` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Frame Health Text',
`boolOptions` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Many Configurable Bool Options',
`unk146` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int8',
`unk147` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int8',
`unk148` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int8',
`unk150` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int16',
`unk152` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int16',
`unk154` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int16',
PRIMARY KEY (`guid`,`id`),
KEY `index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -0,0 +1,3 @@
ALTER TABLE guild ADD `level` INT(10) unsigned DEFAULT '1' AFTER `BankMoney`;
ALTER TABLE guild ADD `experience` BIGINT(20) unsigned DEFAULT '0' AFTER `level`;
ALTER TABLE guild ADD `todayExperience` BIGINT(20) unsigned DEFAULT '0' AFTER `experience`;
@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `guild_news_log`;
CREATE TABLE `guild_news_log` (
`guild` int(10) unsigned NOT NULL,
`id` int(10) unsigned NOT NULL,
`eventType` int(10) unsigned NOT NULL,
`playerGuid` bigint(20) unsigned NOT NULL,
`data` int(10) unsigned NOT NULL,
`flags` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guild`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -0,0 +1,33 @@
DROP TABLE IF EXISTS `guild_xp_for_level`;
CREATE TABLE `guild_xp_for_level` (
`lvl` int(11) unsigned NOT NULL,
`xp_for_next_level` bigint(20) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`lvl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `guild_xp_for_level` VALUES
(1,16580000),
(2,18240000),
(3,19900000),
(4,21550000),
(5,23220000),
(6,24880000),
(7,26530000),
(8,28190000),
(9,29850000),
(10,31510000),
(11,33170000),
(12,34820000),
(13,36490000),
(14,38140000),
(15,39800000),
(16,41450000),
(17,43120000),
(18,44780000),
(19,46430000),
(20,48090000),
(21,49750000),
(22,51410000),
(23,53060000),
(24,54730000),
(25,56390000);
@@ -0,0 +1,5 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_warr_improved_spell_reflection', 'spell_warr_vigilance', 'spell_warr_charge', 'spell_warr_slam', 'spell_warr_execute', 'spell_warr_overpower');
INSERT INTO `spell_script_names`(`spell_id`,`ScriptName`) VALUES
(100,'spell_warr_charge'),
(1464,'spell_warr_slam'),
(5308,'spell_warr_execute');
@@ -0,0 +1,4 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_warl_banish','spell_warl_create_healthstone','spell_warl_ritual_of_doom_effect');
INSERT INTO `spell_script_names`(`spell_id`,`ScriptName`) VALUES
(710,'spell_warl_banish'),
(6201,'spell_warl_create_healthstone');
@@ -0,0 +1,53 @@
DROP TABLE IF EXISTS `guild_rewards`;
CREATE TABLE `guild_rewards` (
`entry` int(10) unsigned NOT NULL DEFAULT '0',
`standing` tinyint(3) unsigned DEFAULT '0',
`racemask` int(11) DEFAULT '0',
`price` bigint(20) unsigned DEFAULT '0',
`achievement` int(10) unsigned DEFAULT '0',
PRIMARY KEY (`entry`)
) engine=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `guild_rewards` values
(69209, 4, -1, 1250000, 0),
(69210, 5, -1, 2500000, 0),
(63353, 5, 946, 1500000, 4989),
(63352, 5, 2098253, 1500000, 4989),
(63207, 5, 946, 3000000, 4945),
(63206, 5, 2098253, 3000000, 4945),
(65274, 6, 946, 5000000, 5035),
(65360, 6, 2098253, 5000000, 5035),
(65362, 5, 946, 3000000, 5179),
(65364, 6, 946, 5000000, 5201),
(65361, 5, 2098253, 3000000, 5031),
(65363, 6, 2098253, 5000000, 5201),
(63138, 7, -1, 3000000, 5812),
(63398, 6, 0, 3000000, 5144),
(63359, 5, 2098253, 1500000, 4860),
(64398, 5, 2098253, 2000000, 5143),
(64399, 5, 2098253, 3000000, 5422),
(64400, 5, 946, 1500000, 4860),
(64401, 5, 946, 2000000, 5143),
(64402, 5, 946, 3000000, 5422),
(62800, 5, 0, 1500000, 5036),
(62799, 5, 0, 1500000, 5467),
(65435, 5, 0, 1500000, 5465),
(65498, 5, 0, 1500000, 5024),
(62286, 4, 0, 100000000, 4943),
(68136, 6, 2098253, 200000000, 5152),
(62287, 6, 946, 200000000, 5158),
(69892, 5, 0, 12000000, 4944),
(62038, 5, 0, 12000000, 4944),
(62039, 5, 0, 12000000, 4944),
(62040, 5, 0, 12000000, 4944),
(69887, 5, 0, 15000000, 4946),
(61958, 5, 0, 15000000, 4946),
(61942, 5, 0, 15000000, 4946),
(61937, 5, 0, 15000000, 4946),
(61936, 5, 0, 15000000, 4946),
(61935, 5, 0, 15000000, 4946),
(61931, 5, 0, 15000000, 4946),
(67107, 7, 946, 15000000, 5492),
(62298, 7, 2098253, 15000000, 4912),
(63125, 7, 0, 30000000, 4988),
(71033, 7, 0, 15000000, 5840);
@@ -0,0 +1,40 @@
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/* Table structure for table `guild_finder_applicant` */
DROP TABLE IF EXISTS `guild_finder_applicant`;
CREATE TABLE `guild_finder_applicant` (
`guildId` int(10) unsigned DEFAULT NULL,
`playerGuid` int(10) unsigned DEFAULT NULL,
`availability` tinyint(3) unsigned DEFAULT '0',
`classRole` tinyint(3) unsigned DEFAULT '0',
`interests` tinyint(3) unsigned DEFAULT '0',
`comment` varchar(255) DEFAULT NULL,
`submitTime` int(10) unsigned DEFAULT NULL,
UNIQUE KEY `guildId` (`guildId`,`playerGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/* Table structure for table `guild_finder_guild_settings` */
DROP TABLE IF EXISTS `guild_finder_guild_settings`;
CREATE TABLE `guild_finder_guild_settings` (
`guildId` int(10) unsigned NOT NULL,
`availability` tinyint(3) unsigned NOT NULL DEFAULT '0',
`classRoles` tinyint(3) unsigned NOT NULL DEFAULT '0',
`interests` tinyint(3) unsigned NOT NULL DEFAULT '0',
`level` tinyint(3) unsigned NOT NULL DEFAULT '1',
`listed` tinyint(3) unsigned NOT NULL DEFAULT '0',
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`guildId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;