From 749e7dbdf9348911c699423004177d44f978054e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 3 Apr 2023 01:03:16 +0200 Subject: [PATCH] Rempve default value definitions, which cause problems on MySQL 8 --- migrations/Version20230402170923.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/Version20230402170923.php b/migrations/Version20230402170923.php index e1ad8adb..2bb7acf3 100644 --- a/migrations/Version20230402170923.php +++ b/migrations/Version20230402170923.php @@ -27,9 +27,9 @@ final class Version20230402170923 extends AbstractMultiPlatformMigration $this->addSql('ALTER TABLE storelocations ADD id_owner INT DEFAULT NULL, ADD part_owner_must_match TINYINT(1) DEFAULT 0 NOT NULL'); $this->addSql('ALTER TABLE storelocations ADD CONSTRAINT FK_751702021E5A74C FOREIGN KEY (id_owner) REFERENCES `users` (id) ON DELETE SET NULL'); $this->addSql('CREATE INDEX IDX_751702021E5A74C ON storelocations (id_owner)'); - $this->addSql('ALTER TABLE users ADD about_me LONGTEXT DEFAULT \'\' NOT NULL'); + $this->addSql('ALTER TABLE users ADD about_me LONGTEXT NOT NULL'); - $this->addSql('ALTER TABLE projects CHANGE description description LONGTEXT DEFAULT \'\' NOT NULL'); + $this->addSql('ALTER TABLE projects CHANGE description description LONGTEXT NOT NULL'); } public function mySQLDown(Schema $schema): void