Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| SchemaHooks | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| onLoadExtensionSchemaUpdates | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace PropertySuggester; |
| 4 | |
| 5 | use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook; |
| 6 | |
| 7 | /** |
| 8 | * @license GPL-2.0-or-later |
| 9 | */ |
| 10 | final class SchemaHooks implements LoadExtensionSchemaUpdatesHook { |
| 11 | /** @inheritDoc */ |
| 12 | public function onLoadExtensionSchemaUpdates( $updater ) { |
| 13 | $updater->addExtensionTable( |
| 14 | 'wbs_propertypairs', |
| 15 | dirname( __DIR__ ) . "/sql/{$updater->getDB()->getType()}/tables-generated.sql" |
| 16 | ); |
| 17 | } |
| 18 | } |