r83491 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83490‎ | r83491 | r83492 >
Date:23:41, 7 March 2011
Author:tstarling
Status:ok
Tags:
Comment:
Split patch-user_last_timestamp.sql off from the other patches, since it already exists on some wikis. Update the patch file to the latest version.
Modified paths:
  • /branches/wmf/1.17wmf1/maintenance/archives/patch-user_last_timestamp.sql (modified) (history)
  • /branches/wmf/1.17wmf1/maintenance/schema-changes-1.17wmf1-final.sql (modified) (history)
  • /branches/wmf/1.17wmf1/maintenance/upgrade-1.17wmf1-final.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/maintenance/archives/patch-user_last_timestamp.sql
@@ -1,3 +1,3 @@
22 -- For getting diff since last view
33 ALTER TABLE /*$wgDBprefix*/user_newtalk
4 - ADD user_last_timestamp binary(14) NOT NULL default '';
 4+ ADD user_last_timestamp varbinary(14) NULL default NULL;
Index: branches/wmf/1.17wmf1/maintenance/upgrade-1.17wmf1-final.php
@@ -77,6 +77,11 @@
7878 'patch-fi_img_timestamp-without-update.sql' );
7979 }
8080
 81+ if ( !$db->fieldExists( 'user', 'user_last_timestamp' ) ) {
 82+ echo " user_last_timestamp";
 83+ sourceUpgradeFile( $db, dirname( __FILE__ ) . '/archives/patch-user_last_timestamp.sql' );
 84+ }
 85+
8186 $db->insert( 'updatelog',
8287 array( 'ul_key' => '1.17wmf1-final' ),
8388 __FUNCTION__ );
Index: branches/wmf/1.17wmf1/maintenance/schema-changes-1.17wmf1-final.sql
@@ -14,7 +14,3 @@
1515 ADD INDEX cl_sortkey (cl_to, cl_type, cl_sortkey, cl_from);
1616 INSERT IGNORE INTO /*$wgDBprefix*/updatelog (ul_key) VALUES ('cl_fields_update');
1717
18 -ALTER TABLE /*$wgDBprefix*/user_newtalk
19 - ADD user_last_timestamp varbinary(14) NULL default NULL;
20 -

Status & tagging log