| 1 | <?php |
| 2 | |
| 3 | namespace LoginNotify; |
| 4 | |
| 5 | use MediaWiki\Installer\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 | } |