r28574 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28573‎ | r28574 | r28575 >
Date:23:35, 16 December 2007
Author:greg
Status:old
Tags:
Comment:
Yet more cleanup of the protected_titles stuff.
Modified paths:
  • /trunk/phase3/maintenance/postgres/archives/patch-protected_titles.sql (modified) (history)
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/archives/patch-protected_titles.sql
@@ -1,11 +1,10 @@
22 CREATE TABLE protected_titles (
33 pt_namespace SMALLINT NOT NULL,
44 pt_title TEXT NOT NULL,
5 - pt_by INTEGER NOT NULL,
6 - pt_reason TEXT,
 5+ pt_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL,
 6+ pt_reason TEXT NULL,
77 pt_timestamp TIMESTAMPTZ NOT NULL,
88 pt_expiry TIMESTAMPTZ NULL,
99 pt_create_perm TEXT NOT NULL DEFAULT ''
1010 );
1111 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);
Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -509,14 +509,13 @@
510510 CREATE TABLE protected_titles (
511511 pt_namespace SMALLINT NOT NULL,
512512 pt_title TEXT NOT NULL,
513 - pt_by INTEGER NOT NULL,
514 - pt_reason TEXT,
 513+ pt_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL,
 514+ pt_reason TEXT NULL,
515515 pt_timestamp TIMESTAMPTZ NOT NULL,
516516 pt_expiry TIMESTAMPTZ NULL,
517517 pt_create_perm TEXT NOT NULL DEFAULT ''
518518 );
519519 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);
521520
522521 CREATE TABLE mediawiki_version (
523522 type TEXT NOT NULL,

Status & tagging log