]> git.donarmstrong.com Git - infobot.git/blob - setup/onjoin.sql
major re-organisation of the different SQL files; cleanup and fixing of the postgres...
[infobot.git] / setup / onjoin.sql
1 CREATE TABLE onjoin (
2         nick VARCHAR(20) NOT NULL,
3         channel VARCHAR(16) NOT NULL,
4         message VARCHAR(255) NOT NULL,
5         modified_by VARCHAR(20) NOT NULL DEFAULT 'nobody',
6         modified_time INT NOT NULL DEFAULT '0',
7         PRIMARY KEY (nick, channel)
8 );
9
10 -- v.2 -> v.3
11 -- ALTER TABLE onjoin ADD COLUMN modified_by VARCHAR(20) NOT NULL DEFAULT 'nobody';
12 -- ALTER TABLE onjoin ADD COLUMN modified_time INT NOT NULL DEFAULT '0';
13 -- ** the following doesn't work for sqlite **
14 -- ALTER TABLE onjoin ADD PRIMARY KEY (nick, channel);