Index: trunk/extensions/IndexFunction/IndexFunction.php |
— | — | @@ -63,11 +63,14 @@ |
64 | 64 | return true; |
65 | 65 | } |
66 | 66 | |
67 | | -function efIndexUpdateSchema() { |
68 | | - global $wgExtNewTables; |
69 | | - $wgExtNewTables[] = array( |
70 | | - 'indexes', |
71 | | - dirname( __FILE__ ) . '/indexes.sql' ); |
| 67 | +function efIndexUpdateSchema( $updater = null ) { |
| 68 | + if ( $updater === null ) { |
| 69 | + global $wgExtNewTables; |
| 70 | + $wgExtNewTables[] = array( 'indexes', dirname( __FILE__ ) . '/indexes.sql' ); |
| 71 | + } else { |
| 72 | + $updater->addExtensionUpdate( array( 'addTable', 'indexes', |
| 73 | + dirname( __FILE__ ) . '/indexes.sql', true ) ); |
| 74 | + } |
72 | 75 | return true; |
73 | 76 | } |
74 | 77 | function efParserTestTables( &$tables ) { |