Added SQL to create wrreport table.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 7 Nov 2008 22:18:00 +0000 (22:18 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 7 Nov 2008 22:18:00 +0000 (22:18 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@320 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.sql [new file with mode: 0644]

diff --git a/wrreport.sql b/wrreport.sql
new file mode 100644 (file)
index 0000000..719849d
--- /dev/null
@@ -0,0 +1,18 @@
+--- SQL command to create the wrreport table, that is necessary to use the wrreport extension.
+CREATE TABLE wrreport (
+  id serial NOT NULL,
+  page_id integer,
+  page_title character varying(255),
+  date_report date,
+  date_entry timestamp with time zone DEFAULT now(),
+  date_invalid timestamp with time zone DEFAULT (now() + '9 days'::interval),
+  condition integer,
+  description text,
+  author_name character varying(30),
+  author_ip inet,
+  author_userid integer,
+  author_username character varying(30),
+  CONSTRAINT wrreport_pkey PRIMARY KEY (id),
+  CONSTRAINT condition_check CHECK (condition >= 1 AND condition <= 5)
+);
+