summaryrefslogtreecommitdiff
path: root/maintenance/postgres/archives/patch-page_restrictions.sql
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/postgres/archives/patch-page_restrictions.sql')
-rw-r--r--maintenance/postgres/archives/patch-page_restrictions.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/maintenance/postgres/archives/patch-page_restrictions.sql b/maintenance/postgres/archives/patch-page_restrictions.sql
new file mode 100644
index 00000000..1faa14a9
--- /dev/null
+++ b/maintenance/postgres/archives/patch-page_restrictions.sql
@@ -0,0 +1,10 @@
+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);
+