]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/DoctrineMigrations/Version20161128131503.php
Added hardcoded SQL for migration to 2.2
[github/wallabag/wallabag.git] / app / DoctrineMigrations / Version20161128131503.php
index f0e016c8c7b715242035ddf9fc9e469f6af57920..b71aa38bcbe6fc5cab9edf1ac6b4642138332b1b 100644 (file)
@@ -55,7 +55,7 @@ class Version20161128131503 extends AbstractMigration implements ContainerAwareI
 
         foreach ($this->fields as $field => $type) {
             $this->skipIf($userTable->hasColumn($field), 'It seems that you already played this migration.');
-            $userTable->addColumn($field, $type);
+            $userTable->addColumn($field, $type, ['notnull' => false]);
         }
     }
 }