r20412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20411‎ | r20412 | r20413 >
Date:23:02, 13 March 2007
Author:aaron
Status:old
Tags:
Comment:
*Add ar_len, remove reference to archive2 for Postgres
Modified paths:
  • /branches/phase3_rev_deleted/maintenance/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/archives/patch-ar_len.sql (added) (history)
  • /trunk/phase3/maintenance/mysql5/tables-binary.sql (modified) (history)
  • /trunk/phase3/maintenance/mysql5/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/archives/patch-ar_len.sql
@@ -0,0 +1,3 @@
 2+ALTER TABLE /*$wgDBprefix*/archive
 3+ ADD ar_len INT(8) UNSIGNED;
 4+
Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -136,8 +136,9 @@
137137 ar_rev_id INTEGER,
138138 ar_text_id INTEGER,
139139 ar_deleted INTEGER NOT NULL DEFAULT '0',
 140+ ar_len INTEGER NULL,
140141 );
141 -CREATE INDEX archive_name_title_timestamp ON archive2 (ar_namespace,ar_title,ar_timestamp);
 142+CREATE INDEX archive_name_title_timestamp ON archive (ar_namespace,ar_title,ar_timestamp);
142143
143144 CREATE TABLE redirect (
144145 rd_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE,
Index: trunk/phase3/maintenance/updaters.inc
@@ -74,6 +74,7 @@
7575 array( 'filearchive', 'fa_deleted', 'patch-fa_deleted.sql' ),
7676 array( 'page_restrictions', 'pr_id', 'patch-page_restrictions_sortkey.sql' ),
7777 array( 'revision', 'rev_len', 'patch-rev_len.sql' ),
 78+ array( 'archive', 'ar_len', 'patch-ar_len.sql' ),
7879 array( 'revision', 'rev_parent_id', 'patch-rev_parent_id.sql' ),
7980 );
8081
Index: trunk/phase3/maintenance/mysql5/tables.sql
@@ -385,7 +385,9 @@
386386
387387 -- rev_deleted for archives
388388 ar_deleted tinyint(1) unsigned NOT NULL default '0',
389 -
 389+ -- Length of this revision in bytes
 390+ rev_len int(8) unsigned,
 391+
390392 KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp)
391393
392394 ) ENGINE=InnoDB, DEFAULT CHARSET=utf8;
Index: trunk/phase3/maintenance/mysql5/tables-binary.sql
@@ -394,7 +394,9 @@
395395
396396 -- rev_deleted for archives
397397 ar_deleted tinyint(1) unsigned NOT NULL default '0',
398 -
 398+ -- Length of this revision in bytes
 399+ ar_len int(8) unsigned,
 400+
399401 KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp)
400402
401403 ) ENGINE=InnoDB, DEFAULT CHARSET=binary;
Index: branches/phase3_rev_deleted/maintenance/tables.sql
@@ -257,6 +257,8 @@
258258
259259 -- Not yet used; reserved for future changes to the deletion system.
260260 rev_deleted tinyint(1) unsigned NOT NULL default '0',
 261+ -- Length of this revision in bytes
 262+ rev_len int(8) unsigned,
261263
262264 PRIMARY KEY rev_page_id (rev_page, rev_id),
263265 UNIQUE INDEX rev_id (rev_id),
@@ -353,7 +355,10 @@
354356
355357 -- rev_deleted for archives
356358 ar_deleted tinyint(1) unsigned NOT NULL default '0',
 359+ -- Length of this revision in bytes
 360+ ar_len int(8) unsigned,
357361
 362+
358363 KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp)
359364
360365 ) TYPE=InnoDB;