mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[0014] removed gmlevel from account table and modified some sql inserts.
This commit is contained in:
parent
1597b90686
commit
78ccf5882e
3 changed files with 40 additions and 25 deletions
|
|
@ -41,27 +41,25 @@ UNLOCK TABLES;
|
|||
|
||||
DROP TABLE IF EXISTS `account`;
|
||||
CREATE TABLE `account` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment COMMENT 'Identifier',
|
||||
`username` varchar(32) NOT NULL default '',
|
||||
`sha_pass_hash` varchar(40) NOT NULL default '',
|
||||
`gmlevel` tinyint(3) unsigned NOT NULL default '0',
|
||||
`sessionkey` longtext,
|
||||
`v` longtext,
|
||||
`s` longtext,
|
||||
`email` text,
|
||||
`joindate` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
||||
`last_ip` varchar(30) NOT NULL default '0.0.0.0',
|
||||
`failed_logins` int(11) 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',
|
||||
`active_realm_id` int(11) unsigned NOT NULL default '0',
|
||||
`expansion` tinyint(3) unsigned NOT NULL default '0',
|
||||
`mutetime` bigint(40) unsigned NOT NULL default '0',
|
||||
`locale` tinyint(3) unsigned NOT NULL default '0',
|
||||
`id` INT(11) 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,
|
||||
`joindate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`last_ip` VARCHAR(30) NOT NULL DEFAULT '0.0.0.0',
|
||||
`failed_logins` INT(11) 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',
|
||||
`active_realm_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`expansion` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`mutetime` BIGINT(40) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`locale` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_username` (`username`),
|
||||
KEY `idx_gmlevel` (`gmlevel`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC COMMENT='Account System';
|
||||
UNIQUE KEY `idx_username` (`username`)
|
||||
) ENGINE=MYISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC COMMENT='Account System';
|
||||
|
||||
--
|
||||
-- Dumping data for table `account`
|
||||
|
|
@ -70,10 +68,10 @@ CREATE TABLE `account` (
|
|||
LOCK TABLES `account` WRITE;
|
||||
/*!40000 ALTER TABLE `account` DISABLE KEYS */;
|
||||
INSERT INTO `account` VALUES
|
||||
(1,'ADMINISTRATOR','a34b29541b87b7e4823683ce6c7bf6ae68beaaac',3,'','0','0','','2006-04-25 10:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
|
||||
(2,'GAMEMASTER','7841e21831d7c6bc0b57fbe7151eb82bd65ea1f9',2,'','0','0','','2006-04-25 10:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
|
||||
(3,'MODERATOR','a7f5fbff0b4eec2d6b6e78e38e8312e64d700008',1,'','0','0','','2006-04-25 10:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
|
||||
(4,'PLAYER','3ce8a96d17c5ae88a30681024e86279f1a38c041',0,'','0','0','','2006-04-25 10:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0);
|
||||
(1,'ADMINISTRATOR','a34b29541b87b7e4823683ce6c7bf6ae68beaaac','','0','0','','2006-04-25 10:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
|
||||
(2,'GAMEMASTER','7841e21831d7c6bc0b57fbe7151eb82bd65ea1f9','','0','0','','2006-04-25 10:18:56','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
|
||||
(3,'MODERATOR','a7f5fbff0b4eec2d6b6e78e38e8312e64d700008','','0','0','','2006-04-25 10:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0),
|
||||
(4,'PLAYER','3ce8a96d17c5ae88a30681024e86279f1a38c041','','0','0','','2006-04-25 10:19:35','127.0.0.1',0,0,'0000-00-00 00:00:00',0,0,0,0);
|
||||
/*!40000 ALTER TABLE `account` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
|
|
@ -90,6 +88,20 @@ CREATE TABLE `account_access` (
|
|||
PRIMARY KEY (`id`,`RealmID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `account_access`
|
||||
--
|
||||
|
||||
LOCK TABLES `account_access` WRITE;
|
||||
/*!40000 ALTER TABLE `account_access` DISABLE KEYS */;
|
||||
INSERT INTO `account_access` VALUES
|
||||
(1,3,-1),
|
||||
(2,2,-1),
|
||||
(3,1,-1),
|
||||
(4,0,-1);
|
||||
/*!40000 ALTER TABLE `account_access` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `account_banned`
|
||||
--
|
||||
|
|
|
|||
3
sql/updates/00014_02_realmd_account.sql
Normal file
3
sql/updates/00014_02_realmd_account.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE realmd_db_version CHANGE COLUMN required_00014_01_realmd_account_access required_00014_02_realmd_account BIT;
|
||||
|
||||
ALTER TABLE `account` DROP `gmlevel`;
|
||||
|
|
@ -2,5 +2,5 @@
|
|||
#define __REVISION_SQL_H__
|
||||
#define REVISION_DB_CHARACTERS "required_0001_xxxxx_01_characters"
|
||||
#define REVISION_DB_MANGOS "required_0001_xxxxx_01_mangos"
|
||||
#define REVISION_DB_REALMD "required_00014_01_realmd_account_access"
|
||||
#define REVISION_DB_REALMD "required_00014_02_realmd_account"
|
||||
#endif // __REVISION_SQL_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue