From: Greg Sabino Mullane Date: Thu, 11 Jan 2007 15:57:41 +0000 (+0000) Subject: Add page_restrictions table. X-Git-Tag: 1.31.0-rc.0~54501 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=5aff55cdd5e3ac55010114fcb9ec4a77d208fb10;p=lhc%2Fweb%2Fwiklou.git Add page_restrictions table. --- diff --git a/maintenance/postgres/tables.sql b/maintenance/postgres/tables.sql index 00d8259a22..8126ceb7cf 100644 --- a/maintenance/postgres/tables.sql +++ b/maintenance/postgres/tables.sql @@ -108,6 +108,17 @@ CREATE TABLE pagecontent ( -- replaces reserved word 'text' ); +CREATE TABLE page_restrictions ( + pr_page INTEGER NULL REFERENCES page (page_id) ON DELETE CASCADE, + pr_type TEXT NOT NULL, + pr_level TEXT NOT NULL, + pr_cascade SMALLINT NOT NULL, + pr_user INTEGER NULL, + pr_expiry TIMESTAMPTZ NULL +); +ALTER TABLE page_restrictions ADD CONSTRAINT page_restrictions_pk PRIMARY KEY (pr_page,pr_type); + + CREATE TABLE archive2 ( ar_namespace SMALLINT NOT NULL, ar_title TEXT NOT NULL,