Commit 5f5b18f5 by Yvon

in mysql from 8.0.13, the BLOB, TEXT, GEOMETRY, and JSON data types can be…

in mysql from 8.0.13, the BLOB, TEXT, GEOMETRY, and JSON data types can be assigned a default value only if the value is written as an expression, even if the expression value is a literal
parent 38fac37a
...@@ -20,7 +20,7 @@ final class Version20210120161945 extends AbstractMigration ...@@ -20,7 +20,7 @@ final class Version20210120161945 extends AbstractMigration
public function up(Schema $schema): void public function up(Schema $schema): void
{ {
// this up() migration is auto-generated, please modify it to your needs // this up() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE flux CHANGE hash hash LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'tmp'"); $this->addSql("ALTER TABLE flux CHANGE hash hash LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ('tmp')");
} }
public function down(Schema $schema): void public function down(Schema $schema): void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment