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 LoginNotify; |
4 | |
5 | use DatabaseUpdater; |
6 | use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook; |
7 | |
8 | class SchemaHooks implements LoadExtensionSchemaUpdatesHook { |
9 | /** |
10 | * @param DatabaseUpdater $updater |
11 | */ |
12 | public function onLoadExtensionSchemaUpdates( $updater ) { |
13 | $updater->addExtensionTable( |
14 | 'loginnotify_seen_net', |
15 | dirname( __DIR__ ) . "/sql/{$updater->getDB()->getType()}/tables-generated.sql" |
16 | ); |
17 | } |
18 | } |