Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -125,10 +125,15 @@ |
126 | 126 | return true; |
127 | 127 | } |
128 | 128 | |
129 | | - function schema_update() { |
130 | | - global $wgExtNewTables; |
| 129 | + function schema_update( $updater = null ) { |
131 | 130 | $base = dirname( __FILE__ ); |
132 | | - $wgExtNewTables[] = array( 'pr_index', "$base/ProofreadPage.sql" ); |
| 131 | + if ( $updater === null ) { |
| 132 | + global $wgExtNewTables; |
| 133 | + $wgExtNewTables[] = array( 'pr_index', "$base/ProofreadPage.sql" ); |
| 134 | + } else { |
| 135 | + $updater->addExtensionUpdate( array( 'addTable', 'pr_index', |
| 136 | + "$base/ProofreadPage.sql", true ) ); |
| 137 | + } |
133 | 138 | return true; |
134 | 139 | } |
135 | 140 | |