$updateVersionSql = 'DELETE FROM s_plugin_schema_version WHERE plugin_name = :plugin_name AND version = :version';
$stmt =
$this->connection->
prepare($updateVersionSql);
$stmt->
execute([ ':plugin_name' =>
$this->plugin->
getName(),
':version' =>
$migration->
getVersion(),
]);
} private function downMigration(AbstractMigration
$migration, bool
$keepUserData): void
{ try { $migration->
down($keepUserData);
foreach ($migration->
getSql() as $sql) { $this->connection->
exec($sql);
} } catch (Exception
$e) { $this->
markMigrationAsFailed($migration,
$e);
throw new RuntimeException(sprintf('Could not revert migration (%s). Error: %s ', \
get_class($migration),
$e->
getMessage()));
} $this->
removeMigration($migration);
}