Conflicts:
	src/server/collision/Management/MMapManager.cpp
	src/server/game/Conditions/ConditionMgr.cpp
	src/server/game/Conditions/ConditionMgr.h
This commit is contained in:
Rat
2015-03-24 20:01:02 +01:00
507 changed files with 43122 additions and 2440 deletions

View File

@@ -1,6 +0,0 @@
ALTER TABLE `arena_team` CHANGE `captainGuid` `captainGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `arena_team_member` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `auctionhouse` CHANGE `auctioneerguid` `auctioneerguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `auctionhouse` CHANGE `itemguid` `itemguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `auctionhouse` CHANGE `itemowner` `itemowner` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `auctionhouse` CHANGE `buyguid` `buyguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';

View File

@@ -1,16 +0,0 @@
TRUNCATE `character_aura`;
TRUNCATE `pet_aura`;
TRUNCATE `group_instance`;
TRUNCATE `group_member`;
TRUNCATE `groups`;
ALTER TABLE `character_aura` CHANGE `caster_guid` `caster_guid` binary(16) NOT NULL COMMENT 'Full Global Unique Identifier';
ALTER TABLE `character_aura` CHANGE `item_guid` `item_guid` binary(16) NOT NULL;
ALTER TABLE `pet_aura` CHANGE `caster_guid` `caster_guid` binary(16) NOT NULL COMMENT 'Full Global Unique Identifier';
ALTER TABLE `groups` CHANGE `icon1` `icon1` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon2` `icon2` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon3` `icon3` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon4` `icon4` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon5` `icon5` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon6` `icon6` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon7` `icon7` binary(16) NOT NULL;
ALTER TABLE `groups` CHANGE `icon8` `icon8` binary(16) NOT NULL;

View File

@@ -1,12 +0,0 @@
ALTER TABLE `character_account_data` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_achievement` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_achievement_progress` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_action` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_arena_stats` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_aura` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_banned` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_battleground_data` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_battleground_random` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_cuf_profiles` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_currency` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_declinedname` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';

View File

@@ -1,36 +0,0 @@
ALTER TABLE `character_equipmentsets` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item0` `item0` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item1` `item1` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item2` `item2` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item3` `item3` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item4` `item4` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item5` `item5` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item6` `item6` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item7` `item7` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item8` `item8` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item9` `item9` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item10` `item10` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item11` `item11` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item12` `item12` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item13` `item13` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item14` `item14` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item15` `item15` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item16` `item16` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item17` `item17` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_equipmentsets` CHANGE `item18` `item18` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_gifts` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_gifts` CHANGE `item_guid` `item_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_glyphs` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_homebind` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_instance` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_inventory` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_inventory` CHANGE `bag` `bag` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_inventory` CHANGE `item` `item` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_queststatus` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_queststatus_daily` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_queststatus_monthly` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_queststatus_rewarded` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_queststatus_seasonal` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_queststatus_weekly` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_reputation` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_skills` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';

View File

@@ -1,16 +0,0 @@
ALTER TABLE `character_social` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_social` CHANGE `friend` `friend` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_spell` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_spell_cooldown` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_stats` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_talent` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_void_storage` CHANGE `playerGuid` `playerGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_void_storage` CHANGE `creatorGuid` `creatorGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `corpse` CHANGE `corpseGuid` `corpseGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `corpse` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `gm_surveys` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `gm_tickets` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `gm_tickets` CHANGE `closedBy` `closedBy` BIGINT(20) NOT NULL DEFAULT '0';
ALTER TABLE `gm_tickets` CHANGE `assignedTo` `assignedTo` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `characters` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `characters` CHANGE `transguid` `transguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';

View File

@@ -1,28 +0,0 @@
ALTER TABLE `group_member` CHANGE `memberGuid` `memberGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `groups` CHANGE `leaderGuid` `leaderGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `groups` CHANGE `looterGuid` `looterGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `groups` CHANGE `masterLooterGuid` `masterLooterGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild` CHANGE `guildid` `guildid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild` CHANGE `leaderguid` `leaderguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_achievement` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_achievement_progress` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_achievement_progress` CHANGE `completedGuid` `completedGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_eventlog` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_eventlog` CHANGE `PlayerGuid` `PlayerGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_eventlog` CHANGE `ItemOrMoney` `ItemOrMoney` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_item` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_item` CHANGE `item_guid` `item_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_right` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_bank_tab` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_eventlog` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_eventlog` CHANGE `PlayerGuid1` `PlayerGuid1` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_eventlog` CHANGE `PlayerGuid2` `PlayerGuid2` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_finder_applicant` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_finder_applicant` CHANGE `playerGuid` `playerGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_finder_guild_settings` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_member` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_member` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_member_withdraw` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_newslog` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_newslog` CHANGE `PlayerGuid` `PlayerGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `guild_rank` CHANGE `guildId` `guildId` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';

View File

@@ -1,27 +0,0 @@
ALTER TABLE `item_instance` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_instance` CHANGE `owner_guid` `owner_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_instance` CHANGE `creatorGuid` `creatorGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_instance` CHANGE `giftCreatorGuid` `giftCreatorGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_loot_items` CHANGE `container_id` `container_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_loot_money` CHANGE `container_id` `container_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_refund_instance` CHANGE `item_guid` `item_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_refund_instance` CHANGE `player_guid` `player_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `item_soulbound_trade_data` CHANGE `itemGuid` `itemGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `lag_reports` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `mail` CHANGE `sender` `sender` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `mail` CHANGE `receiver` `receiver` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `mail_items` CHANGE `item_guid` `item_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `mail_items` CHANGE `receiver` `receiver` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `petition` CHANGE `ownerguid` `ownerguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `petition` CHANGE `petitionguid` `petitionguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `petition_sign` CHANGE `ownerguid` `ownerguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `petition_sign` CHANGE `petitionguid` `petitionguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `petition_sign` CHANGE `playerguid` `playerguid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `pvpstats_players` CHANGE `character_guid` `character_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `quest_tracker` CHANGE `character_guid` `character_guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `calendar_events` CHANGE `creator` `creator` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `calendar_invites` CHANGE `invitee` `invitee` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `calendar_invites` CHANGE `sender` `sender` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `character_pet` CHANGE `owner` `owner` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `creature_respawn` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `gameobject_respawn` CHANGE `guid` `guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';

View File

@@ -1,4 +0,0 @@
ALTER TABLE `character_glyphs` CHANGE `spec` `talentGroup` tinyint(3) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `character_talent` CHANGE `spec` `talentGroup` tinyint(3) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `characters` CHANGE `speccount` `talentGroupsCount` tinyint(3) unsigned NOT NULL DEFAULT '1';
ALTER TABLE `characters` CHANGE `activespec` `activeTalentGroup` tinyint(3) unsigned NOT NULL DEFAULT '0';

View File

@@ -1,9 +0,0 @@
ALTER TABLE `item_instance`
ADD `transmogrification` int(10) unsigned not null default '0' AFTER `text`,
ADD `upgradeId` int(10) unsigned not null default '0' AFTER `transmogrification`,
ADD `enchantIllusion` int(10) unsigned not null default '0' AFTER `upgradeId`,
ADD `bonusListIDs` text AFTER `enchantIllusion`;
UPDATE `item_instance` SET `transmogrification`=SUBSTRING_INDEX(SUBSTRING_INDEX(`enchantments`, ' ', 27 + 1), ' ', -1);
UPDATE `item_instance` SET `enchantments`=SUBSTRING_INDEX(`enchantments`, ' ', 45); -- trim the field to 15 enchantments
UPDATE `item_instance` SET `enchantments`=CONCAT(SUBSTRING_INDEX(`enchantments`, ' ', 24), ' ', SUBSTRING_INDEX(`enchantments`, ' ', -15));

View File

@@ -1,17 +0,0 @@
DROP TABLE IF EXISTS `character_queststatus`;
CREATE TABLE `character_queststatus` (
`guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`quest` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`status` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`timer` INT(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`, `quest`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
DROP TABLE IF EXISTS `character_queststatus_objectives`;
CREATE TABLE `character_queststatus_objectives` (
`guid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`quest` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`objective` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`data` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`, `quest`, `objective`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +0,0 @@
/*
DROP TABLE IF EXISTS `character_currency`;
CREATE TABLE `character_currency` (
`CharacterGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`Currency` SMALLINT(5) UNSIGNED NOT NULL,
`Quantity` INT(10) UNSIGNED NOT NULL,
`WeeklyQuantity` INT(10) UNSIGNED NOT NULL,
`TrackedQuantity` INT(10) UNSIGNED NOT NULL,
`Flags` TINYINT(3) UNSIGNED NOT NULL,
PRIMARY KEY (`CharacterGuid`, `Currency`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB;
*/
ALTER TABLE `character_currency`
CHANGE COLUMN `guid` `CharacterGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' FIRST,
CHANGE COLUMN `currency` `Currency` SMALLINT(5) UNSIGNED NOT NULL AFTER `CharacterGuid`,
CHANGE COLUMN `total_count` `Quantity` INT(10) UNSIGNED NOT NULL AFTER `Currency`,
CHANGE COLUMN `week_count` `WeeklyQuantity` INT(10) UNSIGNED NOT NULL AFTER `Quantity`,
ADD COLUMN `TrackedQuantity` INT(10) UNSIGNED NOT NULL AFTER `WeeklyQuantity`,
ADD COLUMN `Flags` TINYINT(3) UNSIGNED NOT NULL AFTER `TrackedQuantity`;

View File

@@ -1,10 +0,0 @@
ALTER TABLE `characters`
DROP `instance_mode_mask`,
ADD `dungeonDifficulty` tinyint(3) unsigned NOT NULL DEFAULT '1' AFTER `instance_id`,
ADD `raidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT '14' AFTER `dungeonDifficulty`,
ADD `legacyRaidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT '3' AFTER `raidDifficulty`;
ALTER TABLE `groups`
CHANGE `difficulty` `difficulty` tinyint(3) unsigned NOT NULL DEFAULT '1' AFTER `groupType`,
CHANGE `raiddifficulty` `raidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT '14' AFTER `difficulty`,
ADD `legacyRaidDifficulty` tinyint(3) unsigned NOT NULL DEFAULT '3' AFTER `raidDifficulty`;

View File

@@ -1,67 +0,0 @@
--
-- Table structure for table `character_aura_effect`
--
DROP TABLE IF EXISTS `character_aura_effect`;
CREATE TABLE `character_aura_effect` (
`guid` bigint(20) unsigned NOT NULL COMMENT 'Global Unique Identifier',
`casterGuid` binary(16) NOT NULL COMMENT 'Full Global Unique Identifier' ,
`itemGuid` binary(16) NOT NULL,
`spell` int(10) unsigned NOT NULL ,
`effectMask` int(10) unsigned NOT NULL,
`effectIndex` tinyint(3) unsigned NOT NULL,
`amount` int(11) NOT NULL DEFAULT 0,
`baseAmount` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`casterGuid`,`itemGuid`,`spell`,`effectMask`,`effectIndex`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
--
-- Table structure for table `pet_aura_effect`
--
DROP TABLE IF EXISTS `pet_aura_effect`;
CREATE TABLE `pet_aura_effect` (
`guid` int(10) unsigned NOT NULL COMMENT 'Global Unique Identifier',
`casterGuid` binary(16) NOT NULL COMMENT 'Full Global Unique Identifier' ,
`spell` int(10) unsigned NOT NULL,
`effectMask` int(10) unsigned NOT NULL,
`effectIndex` tinyint(3) unsigned NOT NULL,
`amount` int(11) NOT NULL DEFAULT 0,
`baseAmount` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`guid`,`casterGuid`,`spell`,`effectMask`,`effectIndex`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
TRUNCATE `character_aura`;
ALTER TABLE `character_aura`
CHANGE `caster_guid` `casterGuid` binary(16) NOT NULL COMMENT 'Full Global Unique Identifier',
CHANGE `item_guid` `itemGuid` binary(16) NOT NULL,
CHANGE `spell` `spell` int(10) unsigned NOT NULL,
CHANGE `effect_mask` `effectMask` int(10) unsigned NOT NULL,
CHANGE `recalculate_mask` `recalculateMask` int(10) unsigned NOT NULL DEFAULT 0,
CHANGE `stackcount` `stackCount` tinyint(3) unsigned NOT NULL DEFAULT 1,
DROP `amount0`,
DROP `amount1`,
DROP `amount2`,
DROP `base_amount0`,
DROP `base_amount1`,
DROP `base_amount2`,
CHANGE `maxDuration` `maxDuration` int(11) NOT NULL DEFAULT 0,
CHANGE `remainTime` `remainTime` int(11) NOT NULL DEFAULT 0,
CHANGE `remainCharges` `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT 0;
TRUNCATE `pet_aura`;
ALTER TABLE `pet_aura`
CHANGE `caster_guid` `casterGuid` binary(16) NOT NULL COMMENT 'Full Global Unique Identifier',
CHANGE `spell` `spell` int(10) unsigned NOT NULL,
CHANGE `effect_mask` `effectMask` int(10) unsigned NOT NULL,
CHANGE `recalculate_mask` `recalculateMask` int(10) unsigned NOT NULL DEFAULT 0,
CHANGE `stackcount` `stackCount` tinyint(3) unsigned NOT NULL DEFAULT 1,
DROP `amount0`,
DROP `amount1`,
DROP `amount2`,
DROP `base_amount0`,
DROP `base_amount1`,
DROP `base_amount2`,
CHANGE `maxDuration` `maxDuration` int(11) NOT NULL DEFAULT 0,
CHANGE `remainTime` `remainTime` int(11) NOT NULL DEFAULT 0,
CHANGE `remainCharges` `remainCharges` tinyint(3) unsigned NOT NULL DEFAULT 0;

View File

@@ -1,17 +0,0 @@
-- latin1 to utf8
ALTER TABLE `guild_finder_applicant` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
ALTER TABLE `guild_finder_guild_settings` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
ALTER TABLE `item_loot_items` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
ALTER TABLE `item_loot_money` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
ALTER TABLE `pvpstats_battlegrounds` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
ALTER TABLE `pvpstats_players` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
ALTER TABLE `quest_tracker` CONVERT TO CHARACTER SET utf8, CHARACTER SET utf8;
-- add PKs
ALTER TABLE `guild_finder_applicant` DROP INDEX `guildId`, -- had unique instead of PK
ADD PRIMARY KEY (`guildId`, `playerGuid`);
ALTER TABLE `item_loot_items` ADD PRIMARY KEY (`container_id`, `item_id`);
ALTER TABLE `item_loot_money` ADD PRIMARY KEY (`container_id`);
ALTER TABLE `quest_tracker` ADD PRIMARY KEY( `id`, `character_guid`);

View File

@@ -1,9 +0,0 @@
ALTER TABLE `guild` DROP COLUMN `experience`, DROP COLUMN `todayExperience`;
ALTER TABLE `guild_bank_right` MODIFY COLUMN `gbright` mediumint(3) NOT NULL DEFAULT 0; -- temp type, can hold all values
UPDATE `guild_bank_right` SET `gbright` = -1 WHERE `gbright` = 255;
ALTER TABLE `guild_bank_right` MODIFY COLUMN `gbright` tinyint(3) NOT NULL DEFAULT 0;
ALTER TABLE `guild_bank_right` MODIFY COLUMN `SlotPerDay` bigint(10) NOT NULL DEFAULT 0; -- temp type, can hold all values
UPDATE `guild_bank_right` SET `SlotPerDay` = -1 WHERE `SlotPerDay` = 4294967295;
ALTER TABLE `guild_bank_right` MODIFY COLUMN `SlotPerDay` int(10) NOT NULL DEFAULT 0;

View File

@@ -1,5 +0,0 @@
DELETE FROM `petition` WHERE `type` != 10; -- delete all non guild petitions
ALTER TABLE `petition` DROP COLUMN `type`, DROP PRIMARY KEY, ADD PRIMARY KEY (`ownerguid`);
DELETE FROM `petition_sign` WHERE `type` != 10; -- delete all non guild petition signs
ALTER TABLE `petition_sign` DROP COLUMN `type`;

View File

@@ -1,28 +0,0 @@
--
-- Table structure for table `character_spell_charges`
--
DROP TABLE IF EXISTS `character_spell_charges`;
CREATE TABLE `character_spell_charges` (
`guid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part',
`categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellCategory.dbc Identifier',
`rechargeStart` int(10) unsigned NOT NULL DEFAULT '0',
`rechargeEnd` int(10) unsigned NOT NULL DEFAULT '0',
KEY `idx_guid` (`guid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `pet_spell_charges`
--
DROP TABLE IF EXISTS `pet_spell_charges`;
CREATE TABLE `pet_spell_charges` (
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part',
`categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellCategory.dbc Identifier',
`rechargeStart` int(10) unsigned NOT NULL DEFAULT '0',
`rechargeEnd` int(10) unsigned NOT NULL DEFAULT '0',
KEY `idx_guid` (`guid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `character_spell_cooldown` CHANGE `spell` `spell` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier';
ALTER TABLE `pet_spell_cooldown` CHANGE `spell` `spell` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier';

View File

@@ -1,95 +0,0 @@
DROP TABLE IF EXISTS `lag_reports`;
ALTER TABLE `gm_surveys`
RENAME TO `gm_survey`,
CHANGE COLUMN `overallComment` `comment` LONGTEXT NOT NULL AFTER `mainSurvey`;
ALTER TABLE `gm_subsurveys`
RENAME TO `gm_subsurvey`,
CHANGE COLUMN `subsurveyId` `questionId` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `surveyId`,
CHANGE COLUMN `rank` `answer` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `questionId`,
CHANGE COLUMN `comment` `answerComment` TEXT NOT NULL AFTER `answer`;
ALTER TABLE `gm_tickets`
RENAME TO `gm_ticket`,
CHANGE COLUMN `ticketId` `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT FIRST,
CHANGE COLUMN `guid` `playerGuid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier of ticket creator' AFTER `id`,
CHANGE COLUMN `message` `description` TEXT NOT NULL AFTER `playerGuid`,
CHANGE COLUMN `haveTicket` `needMoreHelp` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `viewed`,
DROP COLUMN `name`;
DROP TABLE IF EXISTS `gm_bug`;
CREATE TABLE `gm_bug` (
`id` INT(10) UNSIGNED NOT NULL,
`playerGuid` BIGINT(20) UNSIGNED NOT NULL,
`note` TEXT NOT NULL,
`createTime` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`mapId` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`posX` FLOAT NOT NULL DEFAULT '0',
`posY` FLOAT NOT NULL DEFAULT '0',
`posZ` FLOAT NOT NULL DEFAULT '0',
`facing` FLOAT NOT NULL DEFAULT '0',
`closedBy` BIGINT(20) NOT NULL DEFAULT '0',
`assignedTo` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'GUID of admin to whom ticket is assigned',
`comment` TEXT NOT NULL,
PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
DROP TABLE IF EXISTS `gm_complaint`;
CREATE TABLE `gm_complaint` (
`id` INT(10) UNSIGNED NOT NULL,
`playerGuid` BIGINT(20) UNSIGNED NOT NULL,
`note` TEXT NOT NULL,
`createTime` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`mapId` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`posX` FLOAT NOT NULL DEFAULT '0',
`posY` FLOAT NOT NULL DEFAULT '0',
`posZ` FLOAT NOT NULL DEFAULT '0',
`facing` FLOAT NOT NULL DEFAULT '0',
`targetCharacterGuid` BIGINT(20) UNSIGNED NOT NULL,
`complaintType` SMALLINT(5) UNSIGNED NOT NULL,
`reportLineIndex` INT(10) NOT NULL,
`closedBy` BIGINT(20) NOT NULL DEFAULT '0',
`assignedTo` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'GUID of admin to whom ticket is assigned',
`comment` TEXT NOT NULL,
PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
DROP TABLE IF EXISTS `gm_complaint_chatlog`;
CREATE TABLE `gm_complaint_chatlog` (
`complaintId` INT(10) UNSIGNED NOT NULL,
`lineId` INT(10) UNSIGNED NOT NULL,
`timestamp` INT(10) UNSIGNED NOT NULL,
`text` TEXT NOT NULL,
PRIMARY KEY (`complaintId`, `lineId`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;
DROP TABLE IF EXISTS `gm_suggestion`;
CREATE TABLE `gm_suggestion` (
`id` INT(10) UNSIGNED NOT NULL,
`playerGuid` BIGINT(20) UNSIGNED NOT NULL,
`note` TEXT NOT NULL,
`createTime` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`mapId` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`posX` FLOAT NOT NULL DEFAULT '0',
`posY` FLOAT NOT NULL DEFAULT '0',
`posZ` FLOAT NOT NULL DEFAULT '0',
`facing` FLOAT NOT NULL DEFAULT '0',
`closedBy` BIGINT(20) NOT NULL DEFAULT '0',
`assignedTo` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'GUID of admin to whom ticket is assigned',
`comment` TEXT NOT NULL,
PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
;