From eee3ebe6d6e55a18f690704bc28db3a58f0efb12 Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Wed, 5 May 2010 12:40:52 +0200 Subject: Fix raid groups load from DB and save to DB. Fixes issue #299. - In table GROUPS, since rev 7841, isRaid is used to store the groupType. The DB was not updated. this is now fixed. - Fix isRaid set to 1 when group converted to raid (shall be the groupType). - Fix isRaidGroup check as groupType is now a set of flags. - Fix dungeon/raid check when difficulty change. --HG-- branch : trunk --- sql/characters.sql | 2 +- sql/updates/8116_characters_groups.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 sql/updates/8116_characters_groups.sql (limited to 'sql') diff --git a/sql/characters.sql b/sql/characters.sql index 4c798262bb2..b0e3e170062 100644 --- a/sql/characters.sql +++ b/sql/characters.sql @@ -1360,7 +1360,7 @@ CREATE TABLE `groups` ( `icon6` int(11) unsigned NOT NULL, `icon7` int(11) unsigned NOT NULL, `icon8` int(11) unsigned NOT NULL, - `isRaid` tinyint(1) unsigned NOT NULL, + `groupType` mediumint(8) unsigned NOT NULL, `difficulty` tinyint(3) unsigned NOT NULL default '0', `raiddifficulty` int(11) UNSIGNED NOT NULL default '0', PRIMARY KEY (`leaderGuid`) diff --git a/sql/updates/8116_characters_groups.sql b/sql/updates/8116_characters_groups.sql new file mode 100644 index 00000000000..a75bb274ffb --- /dev/null +++ b/sql/updates/8116_characters_groups.sql @@ -0,0 +1,2 @@ +ALTER TABLE `groups` CHANGE `isRaid` `groupType` MEDIUMINT(8) UNSIGNED NOT NULL; +UPDATE `groups` SET `groupType`=2 where `groupType`=1; -- cgit v1.2.3