]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added check in migration about uuid field 2809/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 30 Jan 2017 20:21:49 +0000 (21:21 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 30 Jan 2017 20:21:49 +0000 (21:21 +0100)
app/DoctrineMigrations/Version20160410190541.php

index 80bcd12a96adbb7894e4c645336fff479fbda33a..6294d84206683656ff2d8e55e9027b47cac0707d 100644 (file)
@@ -34,7 +34,7 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI
     {
         $entryTable = $schema->getTable($this->getTable('entry'));
 
-        $this->skipIf($entryTable->hasColumn('uid'), 'It seems that you already played this migration.');
+        $this->skipIf($entryTable->hasColumn('uid') || $entryTable->hasColumn('uuid'), 'It seems that you already played this migration.');
 
         $entryTable->addColumn('uid', 'string', [
             'notnull' => false,