Do the schema update on the virtual domain

Create the loginnotify_seen_net table in the correct virtual domain.

Change-Id: Idcb9a80949628e5e7ba66e433e07d44050c37123
This commit is contained in:
Tim Starling 2024-11-20 08:58:23 +11:00
parent 56ea972588
commit 2422d5618b

View file

@ -10,9 +10,12 @@ class SchemaHooks implements LoadExtensionSchemaUpdatesHook {
* @param DatabaseUpdater $updater
*/
public function onLoadExtensionSchemaUpdates( $updater ) {
$updater->addExtensionTable(
$updater->addExtensionUpdateOnVirtualDomain( [
'virtual-LoginNotify',
'addTable',
'loginnotify_seen_net',
dirname( __DIR__ ) . "/sql/{$updater->getDB()->getType()}/tables-generated.sql"
);
dirname( __DIR__ ) . "/sql/{$updater->getDB()->getType()}/tables-generated.sql",
true
] );
}
}