Removed useless comment columns from the pool system DB tables.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-06-14 22:22:11 +02:00
parent c3fed147d7
commit edb8c7a8aa
3 changed files with 4 additions and 2 deletions
-2
View File
@@ -4210,7 +4210,6 @@ CREATE TABLE `pool_creature` (
`guid` int(10) unsigned NOT NULL DEFAULT '0',
`pool_entry` mediumint(8) unsigned NOT NULL DEFAULT '0',
`chance` float unsigned NOT NULL DEFAULT '0',
`comment` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`pool_entry`,`guid`),
KEY `idx_guid` (`guid`)
@@ -4287,7 +4286,6 @@ DROP TABLE IF EXISTS `pool_template`;
CREATE TABLE `pool_template` (
`entry` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Pool entry',
`max_limit` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Max number of objects (0) is no limit',
`comment` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+2
View File
@@ -0,0 +1,2 @@
UPDATE `pool_creature` SET `description` = `comment` WHERE `comment` <> '' AND `comment` IS NOT NULL AND (`description` = '' OR `description` IS NULL);
ALTER TABLE `pool_creature` DROP COLUMN `comment`;
+2
View File
@@ -0,0 +1,2 @@
UPDATE `pool_template` SET `description` = `comment` WHERE `comment` <> '' AND `comment` IS NOT NULL AND (`description` = '' OR `description` IS NULL);
ALTER TABLE `pool_template` DROP COLUMN `comment`;