Index: trunk/extensions/FlaggedRevs/backend/schema/FlaggedRevsUpdater.hooks.php |
— | — | @@ -90,14 +90,17 @@ |
91 | 91 | $du->output( "...fr_rev_timestamp already exists.\n" ); |
92 | 92 | return; |
93 | 93 | } |
94 | | - include_once( dirname( __FILE__ ) . "/../maintenance/populateRevTimestamp.inc" ); |
95 | | - if ( !function_exists( 'populate_fr_rev_timestamp' ) ) { |
96 | | - $du->output( "...populateRevTimestamp.inc missing! Aborting fr_rev_timestamp update.\n" ); |
97 | | - return; // sanity |
| 94 | + $scriptDir = dirname( __FILE__ ) . "/../../maintenance/populateRevTimestamp.php"; |
| 95 | + if ( !file_exists( $scriptDir ) ) { |
| 96 | + $du->output( "...populateRevTimestamp.php missing! Aborting fr_rev_timestamp update.\n" ); |
| 97 | + return; // sanity; all or nothing |
98 | 98 | } |
99 | 99 | $du->output( "Adding fr_rev_timestamp and redoing flaggedrevs table indexes... " ); |
| 100 | + // Change the schema |
100 | 101 | $du->getDB()->sourceFile( $patch ); |
101 | | - populate_fr_rev_timestamp( 0 ); |
| 102 | + // Populate columns |
| 103 | + $task = $du->maintenance->runChild( 'PopulateFRRevTimestamp', $scriptDir ); |
| 104 | + $task->execute(); |
102 | 105 | $du->output( "done.\n" ); |
103 | 106 | } |
104 | 107 | } |