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,10 +6,10 @@
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
/*!40101 SET character_set_client = UTF8MB4 */;
CREATE TABLE `account`
(
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
`id` INT unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
`username` varchar(32) NOT NULL DEFAULT '',
`sha_pass_hash` varchar(40) NOT NULL DEFAULT '',
`sessionkey` varchar(80) NOT NULL DEFAULT '',
@@ -21,22 +21,22 @@ CREATE TABLE `account`
`joindate` timestamp NOT NULL DEFAULT current_timestamp(),
`last_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1',
`last_attempt_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1',
`failed_logins` int(10) unsigned NOT NULL DEFAULT 0,
`locked` tinyint(3) unsigned NOT NULL DEFAULT 0,
`failed_logins` INT unsigned NOT NULL DEFAULT 0,
`locked` TINYINT unsigned NOT NULL DEFAULT 0,
`lock_country` varchar(2) NOT NULL DEFAULT '00',
`last_login` timestamp NULL DEFAULT NULL,
`online` int(10) unsigned NOT NULL DEFAULT 0,
`expansion` tinyint(3) unsigned NOT NULL DEFAULT 2,
`mutetime` bigint(20) NOT NULL DEFAULT 0,
`online` INT unsigned NOT NULL DEFAULT 0,
`expansion` TINYINT unsigned NOT NULL DEFAULT 2,
`mutetime` BIGINT NOT NULL DEFAULT 0,
`mutereason` varchar(255) NOT NULL DEFAULT '',
`muteby` varchar(50) NOT NULL DEFAULT '',
`locale` tinyint(3) unsigned NOT NULL DEFAULT 0,
`locale` TINYINT unsigned NOT NULL DEFAULT 0,
`os` varchar(3) NOT NULL DEFAULT '',
`recruiter` int(10) unsigned NOT NULL DEFAULT 0,
`totaltime` int(10) unsigned NOT NULL DEFAULT 0,
`recruiter` INT unsigned NOT NULL DEFAULT 0,
`totaltime` INT unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='Account System';
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=UTF8MB4 COMMENT='Account System';
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `account` WRITE;