diff options
author | Xanadu <none@none> | 2010-06-14 22:22:11 +0200 |
---|---|---|
committer | Xanadu <none@none> | 2010-06-14 22:22:11 +0200 |
commit | edb8c7a8aad780ca76abe3ff5d17cf05bad9d0fe (patch) | |
tree | 20c275bc9e9f03fac4c59d31a48e5c0224844f6a | |
parent | c3fed147d72474052c06c0b34460ff5ba1d5f82a (diff) |
Removed useless comment columns from the pool system DB tables.
--HG--
branch : trunk
-rw-r--r-- | sql/base/world_database.sql | 2 | ||||
-rw-r--r-- | sql/updates/8607_world_pool_creature.sql | 2 | ||||
-rw-r--r-- | sql/updates/8607_world_pool_tempate.sql | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/sql/base/world_database.sql b/sql/base/world_database.sql index 4ef57d79fdd..88d8e282749 100644 --- a/sql/base/world_database.sql +++ b/sql/base/world_database.sql @@ -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; diff --git a/sql/updates/8607_world_pool_creature.sql b/sql/updates/8607_world_pool_creature.sql new file mode 100644 index 00000000000..400e54cc6b5 --- /dev/null +++ b/sql/updates/8607_world_pool_creature.sql @@ -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`; diff --git a/sql/updates/8607_world_pool_tempate.sql b/sql/updates/8607_world_pool_tempate.sql new file mode 100644 index 00000000000..ac1cbf70223 --- /dev/null +++ b/sql/updates/8607_world_pool_tempate.sql @@ -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`; |