Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php |
— | — | @@ -146,30 +146,23 @@ |
147 | 147 | */ |
148 | 148 | public static function loadExtensionSchemaUpdates( $updater = null ) { |
149 | 149 | if ( $updater === null ) { |
150 | | - // Guess that's it for now? |
151 | 150 | global $wgExtNewTables; |
152 | 151 | $wgExtNewTables[] = array( |
153 | 152 | 'article_feedback', |
154 | 153 | dirname( __FILE__ ) . '/sql/ArticleFeedbackv5.sql' |
155 | 154 | ); |
156 | 155 | } else { |
157 | | - # no-op, since we dobn't have upgrades yet. |
| 156 | + $updater->addExtensionUpdate( array( |
| 157 | + 'addTable', |
| 158 | + 'article_feedback', |
| 159 | + dirname( __FILE__ ) . '/sql/ArticleFeedbackv5.sql', |
| 160 | + true |
| 161 | + ) ); |
158 | 162 | } |
159 | 163 | return true; |
160 | 164 | } |
161 | 165 | |
162 | 166 | /** |
163 | | - * ParserTestTables hook |
164 | | - */ |
165 | | - public static function parserTestTables( &$tables ) { |
166 | | - $tables[] = 'article_feedback'; |
167 | | - $tables[] = 'article_feedback_pages'; |
168 | | - $tables[] = 'article_feedback_revisions'; |
169 | | - $tables[] = 'article_feedback_properties'; |
170 | | - return true; |
171 | | - } |
172 | | - |
173 | | - /** |
174 | 167 | * BeforePageDisplay hook |
175 | 168 | */ |
176 | 169 | public static function beforePageDisplay( $out ) { |