diff options
| author | leak <leakzx@googlemail.com> | 2011-01-19 18:40:36 +0100 |
|---|---|---|
| committer | leak <leakzx@googlemail.com> | 2011-01-19 18:51:00 +0100 |
| commit | 471b6f138d3025a01c5410f19862f8ee05c4007d (patch) | |
| tree | 80b8d583b5c765725f467de91933635c387274da /sql/base | |
| parent | c306acf298ade5547512e04351a8f9ae4fdbae6d (diff) | |
SQL: Characters db storage type cleanup No. 3 - Note:
There is a chance that you will be getting importing errors / data truncation warnings because of ancient invalid pet names.
SELECT * FROM character_pet WHERE CHAR_LENGTH(`name`) > 21;
Diffstat (limited to 'sql/base')
| -rw-r--r-- | sql/base/characters_database.sql | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index c1437dcb847..b350b7b27fa 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -612,9 +612,9 @@ DROP TABLE IF EXISTS `character_homebind`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_homebind` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', - `map` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier', - `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Zone Identifier', + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `map` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier', + `zone` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Zone Identifier', `position_x` float NOT NULL DEFAULT '0', `position_y` float NOT NULL DEFAULT '0', `position_z` float NOT NULL DEFAULT '0', @@ -639,9 +639,9 @@ DROP TABLE IF EXISTS `character_instance`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_instance` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0', - `instance` int(11) unsigned NOT NULL DEFAULT '0', - `permanent` tinyint(1) unsigned NOT NULL DEFAULT '0', + `guid` int(10) unsigned NOT NULL DEFAULT '0', + `instance` int(10) unsigned NOT NULL DEFAULT '0', + `permanent` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`instance`), KEY `instance` (`instance`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -664,10 +664,10 @@ DROP TABLE IF EXISTS `character_inventory`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_inventory` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', - `bag` int(11) unsigned NOT NULL DEFAULT '0', + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `bag` int(10) unsigned NOT NULL DEFAULT '0', `slot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `item` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Global Unique Identifier', + `item` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Global Unique Identifier', PRIMARY KEY (`item`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System'; @@ -690,25 +690,25 @@ DROP TABLE IF EXISTS `character_pet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_pet` ( - `id` int(11) unsigned NOT NULL DEFAULT '0', - `entry` int(11) unsigned NOT NULL DEFAULT '0', - `owner` int(11) unsigned NOT NULL DEFAULT '0', - `modelid` int(11) unsigned DEFAULT '0', - `CreatedBySpell` int(11) unsigned NOT NULL DEFAULT '0', + `id` int(10) unsigned NOT NULL DEFAULT '0', + `entry` int(10) unsigned NOT NULL DEFAULT '0', + `owner` int(10) unsigned NOT NULL DEFAULT '0', + `modelid` int(10) unsigned DEFAULT '0', + `CreatedBySpell` mediumint(8) unsigned NOT NULL DEFAULT '0', `PetType` tinyint(3) unsigned NOT NULL DEFAULT '0', - `level` int(11) unsigned NOT NULL DEFAULT '1', - `exp` int(11) unsigned NOT NULL DEFAULT '0', - `Reactstate` tinyint(1) unsigned NOT NULL DEFAULT '0', - `name` varchar(100) DEFAULT 'Pet', - `renamed` tinyint(1) unsigned NOT NULL DEFAULT '0', - `slot` int(11) unsigned NOT NULL DEFAULT '0', - `curhealth` int(11) unsigned NOT NULL DEFAULT '1', - `curmana` int(11) unsigned NOT NULL DEFAULT '0', - `curhappiness` int(11) unsigned NOT NULL DEFAULT '0', - `savetime` bigint(20) unsigned NOT NULL DEFAULT '0', - `resettalents_cost` int(11) unsigned NOT NULL DEFAULT '0', - `resettalents_time` bigint(20) unsigned NOT NULL DEFAULT '0', - `abdata` longtext, + `level` smallint(5) unsigned NOT NULL DEFAULT '1', + `exp` int(10) unsigned NOT NULL DEFAULT '0', + `Reactstate` tinyint(3) unsigned NOT NULL DEFAULT '0', + `name` varchar(21) NOT NULL DEFAULT 'Pet', + `renamed` tinyint(3) unsigned NOT NULL DEFAULT '0', + `slot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `curhealth` int(10) unsigned NOT NULL DEFAULT '1', + `curmana` int(10) unsigned NOT NULL DEFAULT '0', + `curhappiness` int(10) unsigned NOT NULL DEFAULT '0', + `savetime` int(10) unsigned NOT NULL DEFAULT '0', + `resettalents_cost` int(10) unsigned NOT NULL DEFAULT '0', + `resettalents_time` int(10) unsigned NOT NULL DEFAULT '0', + `abdata` text, PRIMARY KEY (`id`), KEY `owner` (`owner`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System'; @@ -731,8 +731,8 @@ DROP TABLE IF EXISTS `character_pet_declinedname`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_pet_declinedname` ( - `id` int(11) unsigned NOT NULL DEFAULT '0', - `owner` int(11) unsigned NOT NULL DEFAULT '0', + `id` int(10) unsigned NOT NULL DEFAULT '0', + `owner` int(10) unsigned NOT NULL DEFAULT '0', `genitive` varchar(12) NOT NULL DEFAULT '', `dative` varchar(12) NOT NULL DEFAULT '', `accusative` varchar(12) NOT NULL DEFAULT '', @@ -760,19 +760,19 @@ DROP TABLE IF EXISTS `character_queststatus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', - `status` tinyint(1) unsigned NOT NULL DEFAULT '0', - `explored` tinyint(1) unsigned NOT NULL DEFAULT '0', - `timer` bigint(20) unsigned NOT NULL DEFAULT '0', - `mobcount1` smallint(3) unsigned NOT NULL DEFAULT '0', - `mobcount2` smallint(3) unsigned NOT NULL DEFAULT '0', - `mobcount3` smallint(3) unsigned NOT NULL DEFAULT '0', - `mobcount4` smallint(3) unsigned NOT NULL DEFAULT '0', - `itemcount1` smallint(3) unsigned NOT NULL DEFAULT '0', - `itemcount2` smallint(3) unsigned NOT NULL DEFAULT '0', - `itemcount3` smallint(3) unsigned NOT NULL DEFAULT '0', - `itemcount4` smallint(3) unsigned NOT NULL DEFAULT '0', + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + `status` tinyint(3) unsigned NOT NULL DEFAULT '0', + `explored` tinyint(3) unsigned NOT NULL DEFAULT '0', + `timer` int(10) unsigned NOT NULL DEFAULT '0', + `mobcount1` smallint(5) unsigned NOT NULL DEFAULT '0', + `mobcount2` smallint(5) unsigned NOT NULL DEFAULT '0', + `mobcount3` smallint(5) unsigned NOT NULL DEFAULT '0', + `mobcount4` smallint(5) unsigned NOT NULL DEFAULT '0', + `itemcount1` smallint(5) unsigned NOT NULL DEFAULT '0', + `itemcount2` smallint(5) unsigned NOT NULL DEFAULT '0', + `itemcount3` smallint(5) unsigned NOT NULL DEFAULT '0', + `itemcount4` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`quest`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System'; /*!40101 SET character_set_client = @saved_cs_client */; @@ -794,9 +794,9 @@ DROP TABLE IF EXISTS `character_queststatus_daily`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus_daily` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', - `time` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + `time` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`quest`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System'; @@ -842,8 +842,8 @@ DROP TABLE IF EXISTS `character_queststatus_weekly`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus_weekly` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', PRIMARY KEY (`guid`,`quest`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System'; @@ -866,10 +866,10 @@ DROP TABLE IF EXISTS `character_reputation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_reputation` ( - `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', - `faction` int(11) unsigned NOT NULL DEFAULT '0', + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `faction` smallint(5) unsigned NOT NULL DEFAULT '0', `standing` int(11) NOT NULL DEFAULT '0', - `flags` int(11) NOT NULL DEFAULT '0', + `flags` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`faction`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System'; /*!40101 SET character_set_client = @saved_cs_client */; @@ -891,10 +891,10 @@ DROP TABLE IF EXISTS `character_skills`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_skills` ( - `guid` int(11) unsigned NOT NULL COMMENT 'Global Unique Identifier', - `skill` mediumint(9) unsigned NOT NULL, - `value` mediumint(9) unsigned NOT NULL, - `max` mediumint(9) unsigned NOT NULL, + `guid` int(10) unsigned NOT NULL COMMENT 'Global Unique Identifier', + `skill` smallint(5) unsigned NOT NULL, + `value` smallint(5) unsigned NOT NULL, + `max` smallint(5) unsigned NOT NULL, PRIMARY KEY (`guid`,`skill`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System'; /*!40101 SET character_set_client = @saved_cs_client */; @@ -2198,4 +2198,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-01-19 16:00:01 +-- Dump completed on 2011-01-19 20:29:23 |
