refactor(DB/SQL): Update integer & utf to MySQL's new standards (#4929)

This commit is contained in:
Kitzunu
2021-03-24 15:50:06 +01:00
committed by GitHub
parent 2105305f55
commit e0d36be56e
379 changed files with 3757 additions and 3748 deletions

View File

@@ -6,91 +6,91 @@
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `characters`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
/*!40101 SET character_set_client = UTF8MB4 */;
CREATE TABLE `characters`
(
`guid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
`account` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier',
`name` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`race` tinyint(3) unsigned NOT NULL DEFAULT 0,
`class` tinyint(3) unsigned NOT NULL DEFAULT 0,
`gender` tinyint(3) unsigned NOT NULL DEFAULT 0,
`level` tinyint(3) unsigned NOT NULL DEFAULT 0,
`xp` int(10) unsigned NOT NULL DEFAULT 0,
`money` int(10) unsigned NOT NULL DEFAULT 0,
`skin` tinyint(3) unsigned NOT NULL DEFAULT 0,
`face` tinyint(3) unsigned NOT NULL DEFAULT 0,
`hairStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
`hairColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
`facialStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
`bankSlots` tinyint(3) unsigned NOT NULL DEFAULT 0,
`restState` tinyint(3) unsigned NOT NULL DEFAULT 0,
`playerFlags` int(10) unsigned NOT NULL DEFAULT 0,
`guid` INT unsigned NOT NULL DEFAULT 0 COMMENT 'Global Unique Identifier',
`account` INT unsigned NOT NULL DEFAULT 0 COMMENT 'Account Identifier',
`name` varchar(12) CHARACTER SET UTF8MB4 COLLATE utf8mb4_bin NOT NULL,
`race` TINYINT unsigned NOT NULL DEFAULT 0,
`class` TINYINT unsigned NOT NULL DEFAULT 0,
`gender` TINYINT unsigned NOT NULL DEFAULT 0,
`level` TINYINT unsigned NOT NULL DEFAULT 0,
`xp` INT unsigned NOT NULL DEFAULT 0,
`money` INT unsigned NOT NULL DEFAULT 0,
`skin` TINYINT unsigned NOT NULL DEFAULT 0,
`face` TINYINT unsigned NOT NULL DEFAULT 0,
`hairStyle` TINYINT unsigned NOT NULL DEFAULT 0,
`hairColor` TINYINT unsigned NOT NULL DEFAULT 0,
`facialStyle` TINYINT unsigned NOT NULL DEFAULT 0,
`bankSlots` TINYINT unsigned NOT NULL DEFAULT 0,
`restState` TINYINT unsigned NOT NULL DEFAULT 0,
`playerFlags` INT unsigned NOT NULL DEFAULT 0,
`position_x` float NOT NULL DEFAULT 0,
`position_y` float NOT NULL DEFAULT 0,
`position_z` float NOT NULL DEFAULT 0,
`map` smallint(5) unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier',
`instance_id` int(10) unsigned NOT NULL DEFAULT 0,
`instance_mode_mask` tinyint(3) unsigned NOT NULL DEFAULT 0,
`map` SMALLINT unsigned NOT NULL DEFAULT 0 COMMENT 'Map Identifier',
`instance_id` INT unsigned NOT NULL DEFAULT 0,
`instance_mode_mask` TINYINT unsigned NOT NULL DEFAULT 0,
`orientation` float NOT NULL DEFAULT 0,
`taximask` text NOT NULL,
`online` tinyint(3) unsigned NOT NULL DEFAULT 0,
`cinematic` tinyint(3) unsigned NOT NULL DEFAULT 0,
`totaltime` int(10) unsigned NOT NULL DEFAULT 0,
`leveltime` int(10) unsigned NOT NULL DEFAULT 0,
`logout_time` int(10) unsigned NOT NULL DEFAULT 0,
`is_logout_resting` tinyint(3) unsigned NOT NULL DEFAULT 0,
`online` TINYINT unsigned NOT NULL DEFAULT 0,
`cinematic` TINYINT unsigned NOT NULL DEFAULT 0,
`totaltime` INT unsigned NOT NULL DEFAULT 0,
`leveltime` INT unsigned NOT NULL DEFAULT 0,
`logout_time` INT unsigned NOT NULL DEFAULT 0,
`is_logout_resting` TINYINT unsigned NOT NULL DEFAULT 0,
`rest_bonus` float NOT NULL DEFAULT 0,
`resettalents_cost` int(10) unsigned NOT NULL DEFAULT 0,
`resettalents_time` int(10) unsigned NOT NULL DEFAULT 0,
`resettalents_cost` INT unsigned NOT NULL DEFAULT 0,
`resettalents_time` INT unsigned NOT NULL DEFAULT 0,
`trans_x` float NOT NULL DEFAULT 0,
`trans_y` float NOT NULL DEFAULT 0,
`trans_z` float NOT NULL DEFAULT 0,
`trans_o` float NOT NULL DEFAULT 0,
`transguid` mediumint(8) unsigned NOT NULL DEFAULT 0,
`extra_flags` smallint(5) unsigned NOT NULL DEFAULT 0,
`stable_slots` tinyint(3) unsigned NOT NULL DEFAULT 0,
`at_login` smallint(5) unsigned NOT NULL DEFAULT 0,
`zone` smallint(5) unsigned NOT NULL DEFAULT 0,
`death_expire_time` int(10) unsigned NOT NULL DEFAULT 0,
`transguid` MEDIUMINT unsigned NOT NULL DEFAULT 0,
`extra_flags` SMALLINT unsigned NOT NULL DEFAULT 0,
`stable_slots` TINYINT unsigned NOT NULL DEFAULT 0,
`at_login` SMALLINT unsigned NOT NULL DEFAULT 0,
`zone` SMALLINT unsigned NOT NULL DEFAULT 0,
`death_expire_time` INT unsigned NOT NULL DEFAULT 0,
`taxi_path` text DEFAULT NULL,
`arenaPoints` int(10) unsigned NOT NULL DEFAULT 0,
`totalHonorPoints` int(10) unsigned NOT NULL DEFAULT 0,
`todayHonorPoints` int(10) unsigned NOT NULL DEFAULT 0,
`yesterdayHonorPoints` int(10) unsigned NOT NULL DEFAULT 0,
`totalKills` int(10) unsigned NOT NULL DEFAULT 0,
`todayKills` smallint(5) unsigned NOT NULL DEFAULT 0,
`yesterdayKills` smallint(5) unsigned NOT NULL DEFAULT 0,
`chosenTitle` int(10) unsigned NOT NULL DEFAULT 0,
`knownCurrencies` bigint(20) unsigned NOT NULL DEFAULT 0,
`watchedFaction` int(10) unsigned NOT NULL DEFAULT 0,
`drunk` tinyint(3) unsigned NOT NULL DEFAULT 0,
`health` int(10) unsigned NOT NULL DEFAULT 0,
`power1` int(10) unsigned NOT NULL DEFAULT 0,
`power2` int(10) unsigned NOT NULL DEFAULT 0,
`power3` int(10) unsigned NOT NULL DEFAULT 0,
`power4` int(10) unsigned NOT NULL DEFAULT 0,
`power5` int(10) unsigned NOT NULL DEFAULT 0,
`power6` int(10) unsigned NOT NULL DEFAULT 0,
`power7` int(10) unsigned NOT NULL DEFAULT 0,
`latency` mediumint(8) unsigned NOT NULL DEFAULT 0,
`talentGroupsCount` tinyint(3) unsigned NOT NULL DEFAULT 1,
`activeTalentGroup` tinyint(3) unsigned NOT NULL DEFAULT 0,
`arenaPoints` INT unsigned NOT NULL DEFAULT 0,
`totalHonorPoints` INT unsigned NOT NULL DEFAULT 0,
`todayHonorPoints` INT unsigned NOT NULL DEFAULT 0,
`yesterdayHonorPoints` INT unsigned NOT NULL DEFAULT 0,
`totalKills` INT unsigned NOT NULL DEFAULT 0,
`todayKills` SMALLINT unsigned NOT NULL DEFAULT 0,
`yesterdayKills` SMALLINT unsigned NOT NULL DEFAULT 0,
`chosenTitle` INT unsigned NOT NULL DEFAULT 0,
`knownCurrencies` BIGINT unsigned NOT NULL DEFAULT 0,
`watchedFaction` INT unsigned NOT NULL DEFAULT 0,
`drunk` TINYINT unsigned NOT NULL DEFAULT 0,
`health` INT unsigned NOT NULL DEFAULT 0,
`power1` INT unsigned NOT NULL DEFAULT 0,
`power2` INT unsigned NOT NULL DEFAULT 0,
`power3` INT unsigned NOT NULL DEFAULT 0,
`power4` INT unsigned NOT NULL DEFAULT 0,
`power5` INT unsigned NOT NULL DEFAULT 0,
`power6` INT unsigned NOT NULL DEFAULT 0,
`power7` INT unsigned NOT NULL DEFAULT 0,
`latency` MEDIUMINT unsigned NOT NULL DEFAULT 0,
`talentGroupsCount` TINYINT unsigned NOT NULL DEFAULT 1,
`activeTalentGroup` TINYINT unsigned NOT NULL DEFAULT 0,
`exploredZones` longtext DEFAULT NULL,
`equipmentCache` longtext DEFAULT NULL,
`ammoId` int(10) unsigned NOT NULL DEFAULT 0,
`ammoId` INT unsigned NOT NULL DEFAULT 0,
`knownTitles` longtext DEFAULT NULL,
`actionBars` tinyint(3) unsigned NOT NULL DEFAULT 0,
`grantableLevels` tinyint(3) unsigned NOT NULL DEFAULT 0,
`actionBars` TINYINT unsigned NOT NULL DEFAULT 0,
`grantableLevels` TINYINT unsigned NOT NULL DEFAULT 0,
`creation_date` timestamp NOT NULL DEFAULT current_timestamp(),
`deleteInfos_Account` int(10) unsigned DEFAULT NULL,
`deleteInfos_Account` INT unsigned DEFAULT NULL,
`deleteInfos_Name` varchar(12) DEFAULT NULL,
`deleteDate` int(10) unsigned DEFAULT NULL,
`deleteDate` INT unsigned DEFAULT NULL,
PRIMARY KEY (`guid`),
KEY `idx_account` (`account`),
KEY `idx_online` (`online`),
KEY `idx_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `characters` WRITE;