r28541 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28540‎ | r28541 | r28542 >
Date:15:32, 16 December 2007
Author:greg
Status:old
Tags:
Comment:
Add protected_titles table.
Modified paths:
  • /trunk/phase3/maintenance/postgres/archives/patch-protected_titles.sql (added) (history)
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/archives/patch-protected_titles.sql
@@ -0,0 +1,11 @@
 2+CREATE TABLE protected_titles (
 3+ pt_namespace SMALLINT NOT NULL,
 4+ pt_title TEXT NOT NULL,
 5+ pt_by INTEGER NOT NULL,
 6+ pt_reason TEXT,
 7+ pt_timestamp TIMESTAMPTZ NOT NULL,
 8+ pt_expiry TIMESTAMPTZ NULL,
 9+ pt_create_perm TEXT NOT NULL DEFAULT ''
 10+);
 11+CREATE UNIQUE INDEX protected_titles_unique ON protected_titles(pt_namespace, pt_title);
 12+CREATE INDEX protected_titles_index ON protected_titles(pt_by, pt_timestamp);
Property changes on: trunk/phase3/maintenance/postgres/archives/patch-protected_titles.sql
___________________________________________________________________
Added: svn:eol-style
113 + native
Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -506,6 +506,17 @@
507507 );
508508 CREATE UNIQUE INDEX pf_name_server ON profiling (pf_name, pf_server);
509509
 510+CREATE TABLE protected_titles (
 511+ pt_namespace SMALLINT NOT NULL,
 512+ pt_title TEXT NOT NULL,
 513+ pt_by INTEGER NOT NULL,
 514+ pt_reason TEXT,
 515+ pt_timestamp TIMESTAMPTZ NOT NULL,
 516+ pt_expiry TIMESTAMPTZ NULL,
 517+ pt_create_perm TEXT NOT NULL DEFAULT ''
 518+);
 519+CREATE UNIQUE INDEX protected_titles_unique ON protected_titles(pt_namespace, pt_title);
 520+CREATE INDEX protected_titles_index ON protected_titles(pt_by, pt_timestamp);
510521
511522 CREATE TABLE mediawiki_version (
512523 type TEXT NOT NULL,
@@ -528,4 +539,3 @@
529540 INSERT INTO mediawiki_version (type,mw_version,sql_version,sql_date)
530541 VALUES ('Creation','??','$LastChangedRevision$','$LastChangedDate$');
531542
532 -
Index: trunk/phase3/maintenance/updaters.inc
@@ -1325,6 +1325,7 @@
13261326 array("querycachetwo", "patch-querycachetwo.sql"),
13271327 array("page_restrictions", "patch-page_restrictions.sql"),
13281328 array("profiling", "patch-profiling.sql"),
 1329+ array("protected_titles", "patch-protected_titles.sql"),
13291330 array("redirect", "patch-redirect.sql"),
13301331 );
13311332

Status & tagging log