From: Aaron Schulz Date: Sun, 25 Feb 2007 19:49:51 +0000 (+0000) Subject: *Add pr_id column to fix horrible breakage (Bug 9103) X-Git-Tag: 1.31.0-rc.0~53963 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=e6ec1e8a20f4ec9da75501b409629f30be67f2b6;p=lhc%2Fweb%2Fwiklou.git *Add pr_id column to fix horrible breakage (Bug 9103) --- diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index 62e021e87a..a934d93262 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -109,7 +109,9 @@ CREATE TABLE pagecontent ( -- replaces reserved word 'text' ); +CREATE SEQUENCE pr_id_val; CREATE TABLE page_restrictions ( + pr_id INTEGER NOT NULL UNIQUE DEFAULT nextval('pr_id_val'), pr_page INTEGER NULL REFERENCES page (page_id) ON DELETE CASCADE, pr_type TEXT NOT NULL, pr_level TEXT NOT NULL,