--- /dev/null
+CREATE TABLE protected_titles (
+ pt_namespace SMALLINT NOT NULL,
+ pt_title TEXT NOT NULL,
+ pt_by INTEGER NOT NULL,
+ pt_reason TEXT,
+ 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);
+CREATE INDEX protected_titles_index ON protected_titles(pt_by, pt_timestamp);
);
CREATE UNIQUE INDEX pf_name_server ON profiling (pf_name, pf_server);
+CREATE TABLE protected_titles (
+ pt_namespace SMALLINT NOT NULL,
+ pt_title TEXT NOT NULL,
+ pt_by INTEGER NOT NULL,
+ pt_reason TEXT,
+ 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);
+CREATE INDEX protected_titles_index ON protected_titles(pt_by, pt_timestamp);
CREATE TABLE mediawiki_version (
type TEXT NOT NULL,
INSERT INTO mediawiki_version (type,mw_version,sql_version,sql_date)
VALUES ('Creation','??','$LastChangedRevision$','$LastChangedDate$');
-
array("querycachetwo", "patch-querycachetwo.sql"),
array("page_restrictions", "patch-page_restrictions.sql"),
array("profiling", "patch-profiling.sql"),
+ array("protected_titles", "patch-protected_titles.sql"),
array("redirect", "patch-redirect.sql"),
);