]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - maintenance/postgres/archives/patch-protected_titles.sql
MediaWiki 1.14.0
[autoinstallsdev/mediawiki.git] / maintenance / postgres / archives / patch-protected_titles.sql
diff --git a/maintenance/postgres/archives/patch-protected_titles.sql b/maintenance/postgres/archives/patch-protected_titles.sql
new file mode 100644 (file)
index 0000000..93f10e4
--- /dev/null
@@ -0,0 +1,10 @@
+CREATE TABLE protected_titles (
+  pt_namespace   SMALLINT    NOT NULL,
+  pt_title       TEXT        NOT NULL,
+  pt_user        INTEGER         NULL  REFERENCES mwuser(user_id) ON DELETE SET NULL,
+  pt_reason      TEXT            NULL,
+  pt_timestamp   TIMESTAMPTZ NOT NULL,
+  pt_expiry      TIMESTAMPTZ     NULL,
+  pt_create_perm TEXT        NOT NULL DEFAULT ''
+);
+CREATE UNIQUE INDEX protected_titles_unique ON protected_titles(pt_namespace, pt_title);