Execute noop migrations

This commit is contained in:
Yassine Guedidi
2024-03-10 22:40:40 +01:00
parent 278e8cb0bb
commit 750dd643d1
3 changed files with 30 additions and 6 deletions

View File

@ -17,7 +17,11 @@ class Version20161214094402 extends WallabagMigration
{
$entryTable = $schema->getTable($this->getTable('entry'));
$this->skipIf($entryTable->hasColumn('uid'), 'It seems that you already played this migration.');
if ($entryTable->hasColumn('uid')) {
$this->write('It seems that you already played this migration.');
return;
}
$platform = $this->connection->getDatabasePlatform();
@ -41,7 +45,11 @@ class Version20161214094402 extends WallabagMigration
{
$entryTable = $schema->getTable($this->getTable('entry'));
$this->skipIf($entryTable->hasColumn('uuid'), 'It seems that you already played this migration.');
if ($entryTable->hasColumn('uuid')) {
$this->write('It seems that you already played this migration.');
return;
}
$platform = $this->connection->getDatabasePlatform();