]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fixup! Run migration in test, ready for MySQL
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 13 Dec 2016 09:41:47 +0000 (10:41 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 19 Dec 2016 09:35:25 +0000 (10:35 +0100)
app/DoctrineMigrations/Version20161022134138.php

index 22469f632ffe867fa317757c0a4a40244dd54aaa..d0e5cb3fc695c9d749d3f41b988dbc9c99fbc298 100644 (file)
@@ -35,7 +35,7 @@ class Version20161022134138 extends AbstractMigration implements ContainerAwareI
 
         // convert field length for utf8mb4
         // http://stackoverflow.com/a/31474509/569101
-        $this->addSql('ALTER TABLE '.$this->getTable('user').' CHANGE confirmation_token confirmation_token VARCHAR(180) NOT NULL;');
+        $this->addSql('ALTER TABLE '.$this->getTable('user').' CHANGE confirmation_token confirmation_token VARCHAR(180) DEFAULT NULL;');
         $this->addSql('ALTER TABLE '.$this->getTable('user').' CHANGE salt salt VARCHAR(180) NOT NULL;');
         $this->addSql('ALTER TABLE '.$this->getTable('user').' CHANGE password password VARCHAR(180) NOT NULL;');