Index: trunk/extensions/TodoTasks/TodoTasks.php |
— | — | @@ -62,12 +62,15 @@ |
63 | 63 | $wgHooks['EditPage::attemptSave'][] = 'todoSavePreparser'; |
64 | 64 | $wgHooks['ParserFirstCallInit'][] = 'wfTodoParserFunction_Setup'; |
65 | 65 | |
66 | | -function efTodoTasksSchemaUpdates() { |
67 | | - global $wgExtNewTables; |
68 | | - |
| 66 | +function efTodoTasksSchemaUpdates( $updater = null ) { |
69 | 67 | $base = dirname(__FILE__); |
70 | 68 | |
71 | | - $wgExtNewTables[] = array( 'todo', "$base/todotasks.sql" ); // Initial install tables |
| 69 | + if ( $updater === null ) { |
| 70 | + global $wgExtNewTables; |
| 71 | + $wgExtNewTables[] = array( 'todo', "$base/todotasks.sql" ); // Initial install tables |
| 72 | + } else { |
| 73 | + $updater->addExtensionUpdate( array( 'addTable', 'todo', "$base/todotasks.sql", true ) ); |
| 74 | + } |
72 | 75 | |
73 | 76 | return true; |
74 | 77 | } |