mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
SQL: Auth db data type cleanup account / Storage engine switched to InnoDB
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
-- MySQL dump 10.13 Distrib 5.5.21, for Win64 (x86)
|
||||
-- MySQL dump 10.13 Distrib 5.5.22, for Win64 (x86)
|
||||
--
|
||||
-- Host: localhost Database: auth
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.5.21
|
||||
-- Server version 5.5.22
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
@@ -23,27 +23,27 @@ DROP TABLE IF EXISTS `account`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `account` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
|
||||
`username` varchar(32) NOT NULL DEFAULT '',
|
||||
`sha_pass_hash` varchar(40) NOT NULL DEFAULT '',
|
||||
`sessionkey` longtext,
|
||||
`v` longtext,
|
||||
`s` longtext,
|
||||
`email` text,
|
||||
`sessionkey` varchar(80) NOT NULL DEFAULT '',
|
||||
`v` varchar(64) NOT NULL DEFAULT '',
|
||||
`s` varchar(64) NOT NULL DEFAULT '',
|
||||
`email` varchar(254) NOT NULL DEFAULT '',
|
||||
`joindate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`last_ip` varchar(30) NOT NULL DEFAULT '127.0.0.1',
|
||||
`failed_logins` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`last_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',
|
||||
`last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`online` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`online` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`expansion` tinyint(3) unsigned NOT NULL DEFAULT '2',
|
||||
`mutetime` bigint(40) NOT NULL DEFAULT '0',
|
||||
`mutetime` bigint(20) NOT NULL DEFAULT '0',
|
||||
`locale` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`os` varchar(4) NOT NULL DEFAULT '',
|
||||
`recruiter` int(11) NOT NULL DEFAULT '0',
|
||||
`os` varchar(3) NOT NULL DEFAULT '',
|
||||
`recruiter` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_username` (`username`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Account System';
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Account System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@@ -250,4 +250,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2012-03-26 18:21:51
|
||||
-- Dump completed on 2012-03-27 14:28:21
|
||||
|
||||
13
sql/updates/auth/2012_03_28_00_auth_account.sql
Normal file
13
sql/updates/auth/2012_03_28_00_auth_account.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE `account`
|
||||
CHANGE `id` `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Identifier',
|
||||
CHANGE `sessionkey` `sessionkey` VARCHAR(80) NOT NULL DEFAULT '',
|
||||
CHANGE `v` `v` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
CHANGE `s` `s` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
CHANGE `email` `email` VARCHAR(254) NOT NULL DEFAULT '',
|
||||
CHANGE `last_ip` `last_ip` VARCHAR(15) NOT NULL DEFAULT '127.0.0.1',
|
||||
CHANGE `failed_logins` `failed_logins` INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
CHANGE `online` `online` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
CHANGE `mutetime` `mutetime` BIGINT(20) NOT NULL DEFAULT '0',
|
||||
CHANGE `os` `os` VARCHAR(3) NOT NULL DEFAULT '',
|
||||
CHANGE `recruiter` `recruiter` INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
ROW_FORMAT=DEFAULT ENGINE=INNODB;
|
||||
Reference in New Issue
Block a user