r31456 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31455‎ | r31456 | r31457 >
Date:16:42, 2 March 2008
Author:greg
Status:old
Tags:
Comment:
Make sequence names explicit for future porting ease.
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -4,8 +4,7 @@
55 -- This is the PostgreSQL version.
66 -- For information about each table, please see the notes in maintenance/tables.sql
77 -- Please make sure all dollar-quoting uses $mw$ at the start of the line
 8+-- TODO: Change CHAR/SMALLINT to BOOL (still used in a non-bool fashion in PHP code)
89
910 BEGIN;
1011 SET client_min_messages = 'ERROR';
@@ -290,8 +289,9 @@
291290 CREATE INDEX oi_sha1 ON oldimage (oi_sha1);
292291
293292
 293+CREATE SEQUENCE filearchive_fa_id_seq;
294294 CREATE TABLE filearchive (
295 - fa_id SERIAL NOT NULL PRIMARY KEY,
 295+ fa_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('filearchive_fa_id_seq'),
296296 fa_name TEXT NOT NULL,
297297 fa_archive_name TEXT,
298298 fa_storage_group TEXT,
@@ -438,8 +438,9 @@
439439 CREATE INDEX logging_page_time ON logging (log_namespace, log_title, log_timestamp);
440440
441441
 442+CREATE SEQUENCE trackbacks_tb_id_seq;
442443 CREATE TABLE trackbacks (
443 - tb_id SERIAL NOT NULL PRIMARY KEY,
 444+ tb_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('trackbacks_tb_id_seq'),
444445 tb_page INTEGER REFERENCES page(page_id) ON DELETE CASCADE,
445446 tb_title TEXT NOT NULL,
446447 tb_url TEXT NOT NULL,

Status & tagging log