-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_v1_0.sql
32 lines (29 loc) · 1007 Bytes
/
update_v1_0.sql
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
28
29
30
31
32
ALTER TABLE `%prefix%chat_user` ADD ip VARCHAR(255) AFTER avatar;
ALTER TABLE `%prefix%chat_name` ADD `members` int(11) NOT NULL AFTER `title`;
CREATE TABLE IF NOT EXISTS `%prefix%chat_plugin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`dir` varchar(255) NOT NULL,
`method` varchar(255) NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_updater` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dir` varchar(255) NOT NULL,
`version` varchar(255) NOT NULL,
`last_check` int(11) NOT NULL,
`owner` varchar(255) NOT NULL,
`repo` varchar(255) NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_error` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`errno` int(11) NOT NULL,
`errstr` varchar(255) NOT NULL,
`errfile` varchar(255) NOT NULL,
`errline` int(11) NOT NULL,
`seen` int(1) NOT NULL,
`time` datetime NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;