-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigration.sql
More file actions
28 lines (26 loc) · 879 Bytes
/
Copy pathmigration.sql
File metadata and controls
28 lines (26 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CREATE TABLE IF NOT EXISTS iplist (
`ip` varbinary(16) NOT NULL,
`create` datetime NOT NULL,
`update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`request_total` int(11),
`request_session` int(11),
`request_bad` int(11),
`request_bad_days` int(11),
`request_bad_days_up` date,
`trust` tinyint(1),
`host` varchar(128),
`ua` varchar(255),
`expire` datetime default current_timestamp() not null,
PRIMARY KEY (`ip`),
KEY `update` (`update`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS iplog (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`create` datetime NOT NULL,
`ip` varbinary(16) NOT NULL,
`rule` tinyint(1),
`data` varchar(255),
`try` int(11),
PRIMARY KEY (`id`),
KEY `ip` (`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;