mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Removed DEFAULT value for description on projects table as thats not supported on older MySQL version
This commit is contained in:
parent
f618616379
commit
897ea72bd0
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue