Index: branches/wmf/1.17wmf1/maintenance/archives/patch-user_last_timestamp.sql |
— | — | @@ -1,3 +1,3 @@ |
2 | 2 | -- For getting diff since last view |
3 | 3 | 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 @@ |
78 | 78 | 'patch-fi_img_timestamp-without-update.sql' ); |
79 | 79 | } |
80 | 80 | |
| 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 | + |
81 | 86 | $db->insert( 'updatelog', |
82 | 87 | array( 'ul_key' => '1.17wmf1-final' ), |
83 | 88 | __FUNCTION__ ); |
Index: branches/wmf/1.17wmf1/maintenance/schema-changes-1.17wmf1-final.sql |
— | — | @@ -14,7 +14,3 @@ |
15 | 15 | ADD INDEX cl_sortkey (cl_to, cl_type, cl_sortkey, cl_from); |
16 | 16 | INSERT IGNORE INTO /*$wgDBprefix*/updatelog (ul_key) VALUES ('cl_fields_update'); |
17 | 17 | |
18 | | -ALTER TABLE /*$wgDBprefix*/user_newtalk |
19 | | - ADD user_last_timestamp varbinary(14) NULL default NULL; |
20 | | - |