mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-27 08:20:05 +00:00
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:
parent
56ea972588
commit
2422d5618b
|
@ -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
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue