Removed DEFAULT value for description on projects table as thats not supported on older MySQL version

This commit is contained in:
Jan Böhmer 2023-01-08 19:19:40 +01:00
parent f618616379
commit 897ea72bd0

View file

@ -43,7 +43,7 @@ final class Version20230108165410 extends AbstractMultiPlatformMigration
if ($this->getOldDBVersion() === 99) { if ($this->getOldDBVersion() === 99) {
$this->addSql('ALTER TABLE projects DROP FOREIGN KEY devices_parent_id_fk'); $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('DROP INDEX idx_11074e9a727aca70 ON projects');
$this->addSql('CREATE INDEX IDX_5C93B3A4727ACA70 ON projects (parent_id)'); $this->addSql('CREATE INDEX IDX_5C93B3A4727ACA70 ON projects (parent_id)');
$this->addSql('DROP INDEX idx_11074e9a6dedcec2 ON projects'); $this->addSql('DROP INDEX idx_11074e9a6dedcec2 ON projects');