From 897ea72bd0675e0e528d600ea84d150cee4e5b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 8 Jan 2023 19:19:40 +0100 Subject: [PATCH] Removed DEFAULT value for description on projects table as thats not supported on older MySQL version --- migrations/Version20230108165410.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/Version20230108165410.php b/migrations/Version20230108165410.php index 9e0d8cca..68e3d095 100644 --- a/migrations/Version20230108165410.php +++ b/migrations/Version20230108165410.php @@ -43,7 +43,7 @@ final class Version20230108165410 extends AbstractMultiPlatformMigration if ($this->getOldDBVersion() === 99) { $this->addSql('ALTER TABLE projects DROP FOREIGN KEY devices_parent_id_fk'); } - $this->addSql('ALTER TABLE projects ADD status VARCHAR(64) DEFAULT NULL, ADD description LONGTEXT NOT NULL DEFAULT ""'); + $this->addSql('ALTER TABLE projects ADD status VARCHAR(64) DEFAULT NULL, ADD description LONGTEXT NOT NULL'); $this->addSql('DROP INDEX idx_11074e9a727aca70 ON projects'); $this->addSql('CREATE INDEX IDX_5C93B3A4727ACA70 ON projects (parent_id)'); $this->addSql('DROP INDEX idx_11074e9a6dedcec2 ON projects');