*Add pr_id column to fix horrible breakage (Bug 9103)
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 25 Feb 2007 19:49:51 +0000 (19:49 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 25 Feb 2007 19:49:51 +0000 (19:49 +0000)
maintenance/postgres/tables.sql

index 62e021e..a934d93 100644 (file)
@@ -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,