root/trunk/sql/updates/0.7/3801_banAccount.sql @ 2

Revision 2, 1.1 kB (checked in by yumileroy, 17 years ago)

[svn] * Proper SVN structure

Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00

Line 
1ALTER TABLE `realmd`.`ip_banned` 
2    ADD COLUMN `bandate` INT NOT NULL AFTER `ip`,
3    ADD COLUMN `unbandate` INT NOT NULL AFTER `bandate`,
4    ADD COLUMN `bannedby` VARCHAR(50) NOT NULL DEFAULT '[Console]' AFTER `unbandate`,
5    ADD COLUMN `banreason` VARCHAR(50) NOT NULL DEFAULT 'no reason' AFTER `bannedby`;
6
7ALTER TABLE `realmd`.`account` 
8    DROP KEY `idx_banned`,
9    DROP COLUMN `banned`;
10
11--
12-- Table structure for table `account_banned`
13--
14
15DROP TABLE IF EXISTS `realmd`.`account_banned`;
16CREATE TABLE `realmd`.`account_banned` (
17  `id` int(11) NOT NULL COMMENT   'Account id' default '0',
18   `bandate` bigint(40) NOT NULL default '0',
19  `unbandate` bigint(40) NOT NULL default '0',
20   `bannedby` VARCHAR(50) NOT NULL,
21   `banreason` VARCHAR(255) NOT NULL,
22   `active` TINYINT NOT NULL DEFAULT 1,
23  PRIMARY KEY  (`id`,`bandate`)
24) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Ban List';
25
26--
27-- Dumping data for table `account_banned`
28--
29
30LOCK TABLES `realmd`.`account_banned` WRITE;
31/*!40000 ALTER TABLE `realmd`.`account_banned` DISABLE KEYS */;
32/*!40000 ALTER TABLE `realmd`.`account_banned` ENABLE KEYS */;
33UNLOCK TABLES;
Note: See TracBrowser for help on using the browser.