$stmt->
execute([$this->plugin->
getName()]);
return (int) $stmt->
fetchColumn();
} /**
* @param AbstractPluginMigration::MODUS_* $modus
*/
public function apply(AbstractMigration
$migration,
$modus = AbstractMigration::MODUS_INSTALL, bool
$keepUserData = false
): void
{ if ($modus === AbstractPluginMigration::MODUS_UNINSTALL
) { $this->
downMigration($migration,
$keepUserData);
} else { parent::
apply($migration,
$modus);
} } public function getMigrationsForDowngrade($currentVersion,
$limit = null
): array
{ $regexPattern = '/^([\d]*)-.+\.php$/i';
$migrationPath =
$this->
getMigrationPath();