some javadoc additions some early work on the new producer node to report changes...
[mir.git] / dbscripts / updates / update20050109.sql
1 -- update script 2003-12-12 by rk
2 --
3 -- * adds filter and filtergroups to the database
4 --
5 -- This script will terminate with an error the second time it's run,
6 --   so running this script when it isn't needed can't do any harm.
7 --
8
9 BEGIN TRANSACTION;
10
11 CREATE SEQUENCE "filter_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1  cache 1 ;
12
13 CREATE TABLE "filter" (
14   "id" integer DEFAULT nextval('filter_id_seq'::text) NOT NULL,
15   "priority" integer,
16   "filter_group_id" integer,
17   "type" character varying(255) NOT NULL,
18   "expression" character varying(255) NOT NULL,
19   "tag" character varying(255) NOT NULL,
20         "comment" text,
21   "articleaction" character varying(255) NOT NULL,
22   "commentaction" character varying(255) NOT NULL,
23         "last_hit" timestamp with time zone
24 );
25
26 --
27 -- filter_group
28 --
29
30 CREATE SEQUENCE "filter_group_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1  cache 1 ;
31
32 CREATE TABLE "filter_group" (
33   "id" integer DEFAULT nextval('filter_group_id_seq'::text) NOT NULL,
34   "name" character varying(255),
35   "priority" integer
36 );
37   
38 COMMIT TRANSACTION;
39