mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Added sql updates 3.1.3-3.2.2a
--HG-- branch : trunk
This commit is contained in:
@@ -1089,6 +1089,7 @@ CREATE TABLE `groups` (
|
||||
`icon8` int(11) unsigned NOT NULL,
|
||||
`isRaid` tinyint(1) unsigned NOT NULL,
|
||||
`difficulty` tinyint(3) unsigned NOT NULL default '0',
|
||||
`raiddifficulty` int(11) UNSIGNED NOT NULL default '0',
|
||||
PRIMARY KEY (`leaderGuid`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
|
||||
|
||||
|
||||
26
sql/updates/3.2.2a_characters_update.sql
Normal file
26
sql/updates/3.2.2a_characters_update.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
UPDATE characters SET data = REPLACE(data,' ',' ');
|
||||
UPDATE characters SET data = CONCAT(TRIM(data),' ');
|
||||
|
||||
UPDATE `characters` SET `data` = CONCAT(
|
||||
SUBSTRING_INDEX(`data`, ' ', 1167 + 1), ' ',
|
||||
'0 0 ',
|
||||
SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1246 + 1), ' ', -1246 + 1168 - 1), ' ',
|
||||
'0 0 0 ',
|
||||
SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1294 + 1), ' ', -1294 + 1247 - 1), ' ',
|
||||
'0 '
|
||||
)
|
||||
WHERE length(SUBSTRING_INDEX(data, ' ', 1294)) < length(data) and length(SUBSTRING_INDEX(data, ' ', 1294+1)) >= length(data);
|
||||
|
||||
UPDATE characters SET data = REPLACE(data,' ',' ');
|
||||
UPDATE characters SET data = CONCAT(TRIM(data),' ');
|
||||
|
||||
alter table `groups`
|
||||
add column `raiddifficulty` int(11) UNSIGNED DEFAULT '0' NOT NULL after `difficulty`;
|
||||
|
||||
ALTER TABLE `bugreport` CHANGE `type` `type` LONGTEXT NOT NULL;
|
||||
ALTER TABLE `bugreport` CHANGE `content` `content` LONGTEXT NOT NULL;
|
||||
|
||||
DELETE FROM `character_spell` WHERE `spell` IN (31892, 53720);
|
||||
DELETE FROM `character_spell_cooldown` WHERE `spell` IN (31892, 53720);
|
||||
DELETE FROM `character_aura` WHERE `spell` IN (31892, 53720);
|
||||
DELETE FROM `character_action` WHERE `action` IN (31892, 53720) AND `type`=0;
|
||||
32
sql/updates/3.2.2a_world_update.sql
Normal file
32
sql/updates/3.2.2a_world_update.sql
Normal file
File diff suppressed because one or more lines are too long
@@ -1258,13 +1258,14 @@ CREATE TABLE `item_template` (
|
||||
`displayid` mediumint(8) unsigned NOT NULL default '0',
|
||||
`Quality` tinyint(3) unsigned NOT NULL default '0',
|
||||
`Flags` int(10) unsigned NOT NULL default '0',
|
||||
`Faction` int(11) UNSIGNED NOT NULL default '0',
|
||||
`BuyCount` tinyint(3) unsigned NOT NULL default '1',
|
||||
`BuyPrice` int(10) unsigned NOT NULL default '0',
|
||||
`SellPrice` int(10) unsigned NOT NULL default '0',
|
||||
`InventoryType` tinyint(3) unsigned NOT NULL default '0',
|
||||
`AllowableClass` int signed NOT NULL default '-1',
|
||||
`AllowableRace` int signed NOT NULL default '-1',
|
||||
`ItemLevel` tinyint(3) unsigned NOT NULL default '0',
|
||||
`ItemLevel` smallint(5) unsigned NOT NULL default '0',
|
||||
`RequiredLevel` tinyint(3) unsigned NOT NULL default '0',
|
||||
`RequiredSkill` smallint(5) unsigned NOT NULL default '0',
|
||||
`RequiredSkillRank` smallint(5) unsigned NOT NULL default '0',
|
||||
@@ -2750,7 +2751,7 @@ SET character_set_client = @saved_cs_client;
|
||||
|
||||
DROP TABLE IF EXISTS `spell_bonus_data`;
|
||||
CREATE TABLE `spell_bonus_data` (
|
||||
`entry` smallint(5) unsigned NOT NULL,
|
||||
`entry` mediumint(8) unsigned NOT NULL,
|
||||
`direct_bonus` float NOT NULL default '0',
|
||||
`dot_bonus` float NOT NULL default '0',
|
||||
`ap_bonus` float NOT NULL default '0',
|
||||
@@ -2982,7 +2983,7 @@ DROP TABLE IF EXISTS `spell_proc_event`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
CREATE TABLE `spell_proc_event` (
|
||||
`entry` smallint(5) unsigned NOT NULL default '0',
|
||||
`entry` mediumint(8) unsigned NOT NULL default '0',
|
||||
`SchoolMask` tinyint(4) NOT NULL default '0',
|
||||
`SpellFamilyName` smallint(5) unsigned NOT NULL default '0',
|
||||
`SpellFamilyMask0` int(10) unsigned NOT NULL default '0',
|
||||
|
||||
Reference in New Issue
Block a user