r23036 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23035‎ | r23036 | r23037 >
Date:18:25, 16 June 2007
Author:greg
Status:old
Tags:
Comment:
Add ipb_block_email column
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -227,7 +227,9 @@
228228 ipb_expiry TIMESTAMPTZ NOT NULL,
229229 ipb_range_start TEXT,
230230 ipb_range_end TEXT,
231 - ipb_deleted INTEGER NOT NULL DEFAULT 0
 231+ ipb_deleted INTEGER NOT NULL DEFAULT 0,
 232+ ipb_block_email CHAR NOT NULL DEFAULT '0'
 233+
232234 );
233235 CREATE INDEX ipb_address ON ipblocks (ipb_address);
234236 CREATE INDEX ipb_user ON ipblocks (ipb_user);
@@ -263,10 +265,10 @@
264266 oi_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL,
265267 oi_user_text TEXT NOT NULL,
266268 oi_timestamp TIMESTAMPTZ NOT NULL,
267 - oi_metadata BYTEA NOT NULL,
268 - oi_media_type TEXT NULL,
269 - oi_major_mime TEXT NOT NULL DEFAULT 'unknown',
270 - oi_minor_mime TEXT NOT NULL DEFAULT 'unknown',
 269+ oi_metadata BYTEA NOT NULL,
 270+ oi_media_type TEXT NULL,
 271+ oi_major_mime TEXT NOT NULL DEFAULT 'unknown',
 272+ oi_minor_mime TEXT NOT NULL DEFAULT 'unknown',
271273 oi_deleted CHAR NOT NULL DEFAULT '0'
272274 );
273275 CREATE INDEX oi_name_timestamp ON oldimage (oi_name,oi_timestamp);
Index: trunk/phase3/maintenance/updaters.inc
@@ -1232,6 +1232,7 @@
12331233 $newcols = array(
12341234 array("archive", "ar_len", "INTEGER"),
12351235 array("ipblocks", "ipb_anon_only", "CHAR NOT NULL DEFAULT '0'"),
 1236+ array("ipblocks", "ipb_block_email", "CHAR NOT NULL DEFAULT '0'"),
12361237 array("ipblocks", "ipb_create_account", "CHAR NOT NULL DEFAULT '1'"),
12371238 array("ipblocks", "ipb_deleted", "INTEGER NOT NULL DEFAULT 0"),
12381239 array("ipblocks", "ipb_enable_autoblock", "CHAR NOT NULL DEFAULT '1'"),

Follow-up revisions

RevisionCommit summaryAuthorDate
r23039Merged revisions 22967-23037 via svnmerge from...david20:15, 16 June 2007

Status & tagging log