]> git.donarmstrong.com Git - infobot.git/blob - setup/pgsql/news.sql
major re-organisation of the different SQL files; cleanup and fixing of the postgres...
[infobot.git] / setup / pgsql / news.sql
1 CREATE TABLE news (
2     channel VARCHAR(16) NOT NULL,
3     id numeric DEFAULT 0 NOT NULL,
4     "key" VARCHAR(16) NOT NULL,
5     value text NOT NULL
6 ) WITHOUT OIDS;
7
8 REVOKE ALL ON TABLE news FROM PUBLIC;
9
10 ALTER TABLE ONLY news
11     ADD CONSTRAINT news_pkey PRIMARY KEY (channel, id, "key");