Index: trunk/extensions/Storyboard/Storyboard.php |
— | — | @@ -91,13 +91,21 @@ |
92 | 92 | 'descriptionmsg' => 'storyboard-desc', |
93 | 93 | ); |
94 | 94 | |
95 | | -function efStoryboardSchemaUpdate() { |
96 | | - global $wgExtNewTables, $egStoryboardDir; |
| 95 | +function efStoryboardSchemaUpdate( $updater = null ) { |
| 96 | + global $egStoryboardDir; |
97 | 97 | |
98 | | - $wgExtNewTables[] = array( |
99 | | - 'storyboard', |
100 | | - $egStoryboardDir . 'storyboard.sql' |
101 | | - ); |
| 98 | + if ( $updater === null ) { |
| 99 | + global $wgExtNewTables; |
| 100 | + $wgExtNewTables[] = array( |
| 101 | + 'storyboard', |
| 102 | + $egStoryboardDir . 'storyboard.sql' |
| 103 | + ); |
| 104 | + } else { |
| 105 | + $updater->addExtensionUpdate( array( |
| 106 | + 'addTable', 'storyboard', |
| 107 | + $egStoryboardDir . 'storyboard.sql', true |
| 108 | + ) ); |
| 109 | + } |
102 | 110 | |
103 | 111 | return true; |
104 | 112 | } |