mediawiki-extensions-AbuseF.../includes/AbuseFilterActorMigration.php
Matěj Suchánek bb78cb0a56 Use actor table in AbuseFilter
This patch migrates abuse_filter and abuse_filter_history tables
to new actor schema.

MigrateActorsAF was copy-pasted from core's
maintenance/includes/MigrateActors.php before removal (ba3155214).

Bug: T188180
Change-Id: Ic755526d5f989c4a66b1d37527cda235f61cb437
2023-03-22 14:01:29 +01:00

32 lines
594 B
PHP

<?php
namespace MediaWiki\Extension\AbuseFilter;
use ActorMigrationBase;
use MediaWiki\User\ActorStoreFactory;
/**
* Temporary class for actor migration
*/
class AbuseFilterActorMigration extends ActorMigrationBase {
public const SERVICE_NAME = 'AbuseFilterActorMigration';
/**
* @param int $stage
* @param ActorStoreFactory $actorStoreFactory
*/
public function __construct( $stage, ActorStoreFactory $actorStoreFactory ) {
parent::__construct(
[
'af_user' => [],
'afh_user' => [],
],
$stage,
$actorStoreFactory,
[ 'allowUnknown' => false ]
);
}
}