Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
4 / 4 |
SchemaHandler | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
onLoadExtensionSchemaUpdates | |
100.00% |
1 / 1 |
1 | |
100.00% |
4 / 4 |
<?php | |
namespace MediaWiki\IPInfo\HookHandler; | |
use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook; | |
class SchemaHandler implements LoadExtensionSchemaUpdatesHook { | |
/** | |
* @inheritDoc | |
*/ | |
public function onLoadExtensionSchemaUpdates( $updater ) { | |
$extensionRoot = __DIR__ . '/../..'; | |
$engine = $updater->getDB()->getType(); | |
$updater->addExtensionTable( 'ipinfo_ip_changes', "$extensionRoot/sql/$engine/ipinfo_ip_changes.sql" ); | |
} | |
} |