aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/postgres/archives/patch-page_restrictions.sql
blob: 7960518b317c76c46b8b2e4aecaaa84d74665ba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
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);