Make migrations noop instead of skipping

This commit is contained in:
Yassine Guedidi
2024-02-18 23:47:34 +01:00
parent 3c1a183e2d
commit 3edaed7879
8 changed files with 70 additions and 14 deletions

View File

@ -18,7 +18,11 @@ class Version20161001072726 extends WallabagMigration
{
$platform = $this->connection->getDatabasePlatform();
$this->skipIf($platform instanceof SqlitePlatform, 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
if ($platform instanceof SqlitePlatform) {
$this->write('Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
return;
}
// remove all FK from entry_tag
switch (true) {