r72026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72025‎ | r72026 | r72027 >
Date:14:35, 31 August 2010
Author:greg
Status:ok
Tags:
Comment:
Add in new categorylinks columns.
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -185,10 +185,13 @@
186186 CREATE UNIQUE INDEX il_from ON imagelinks (il_to,il_from);
187187
188188 CREATE TABLE categorylinks (
189 - cl_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
190 - cl_to TEXT NOT NULL,
191 - cl_sortkey TEXT,
192 - cl_timestamp TIMESTAMPTZ NOT NULL
 189+ cl_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
 190+ cl_to TEXT NOT NULL,
 191+ cl_sortkey TEXT NULL,
 192+ cl_timestamp TIMESTAMPTZ NOT NULL,
 193+ cl_sortkey_prefix TEXT NOT NULL DEFAULT '',
 194+ cl_collation SMALLINT NOT NULL DEFAULT 0,
 195+ cl_type TEXT NOT NULL DEFAULT 'page'
193196 );
194197 CREATE UNIQUE INDEX cl_from ON categorylinks (cl_from, cl_to);
195198 CREATE INDEX cl_sortkey ON categorylinks (cl_to, cl_sortkey, cl_from);

Status & tagging log