From 2422d5618bea7f8a38a8b3d1073ea98c635027dd Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 20 Nov 2024 08:58:23 +1100 Subject: [PATCH] Do the schema update on the virtual domain Create the loginnotify_seen_net table in the correct virtual domain. Change-Id: Idcb9a80949628e5e7ba66e433e07d44050c37123 --- includes/SchemaHooks.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/SchemaHooks.php b/includes/SchemaHooks.php index 7440be6..568dfdf 100644 --- a/includes/SchemaHooks.php +++ b/includes/SchemaHooks.php @@ -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 + ] ); } }