addSql('ALTER TABLE collectif_data ADD status DOUBLE PRECISION NOT NULL'); $this->addSql('ALTER TABLE configuration ADD dev_alias VARCHAR(255) DEFAULT NULL'); $this->addSql('ALTER TABLE dreams ADD thematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL'); $this->addSql('ALTER TABLE dreams ADD CONSTRAINT FK_FD07CC0A2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)'); $this->addSql('CREATE INDEX IDX_FD07CC0A2395FCED ON dreams (thematic_id)'); $this->addSql('ALTER TABLE individual_data ADD status DOUBLE PRECISION NOT NULL'); $this->addSql('ALTER TABLE projects_boost ADD thematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL'); $this->addSql('ALTER TABLE projects_boost ADD CONSTRAINT FK_C3E573562395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)'); $this->addSql('CREATE INDEX IDX_C3E573562395FCED ON projects_boost (thematic_id)'); $this->addSql('ALTER TABLE projects_inspiring ADD thematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL'); $this->addSql('ALTER TABLE projects_inspiring ADD CONSTRAINT FK_E60CAEC62395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)'); $this->addSql('CREATE INDEX IDX_E60CAEC62395FCED ON projects_inspiring (thematic_id)'); $this->addSql('ALTER TABLE revolts ADD thematic_id INT DEFAULT NULL, ADD description LONGTEXT NOT NULL'); $this->addSql('ALTER TABLE revolts ADD CONSTRAINT FK_68E7DC9F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)'); $this->addSql('CREATE INDEX IDX_68E7DC9F2395FCED ON revolts (thematic_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE collectif_data DROP status'); $this->addSql('ALTER TABLE configuration DROP dev_alias'); $this->addSql('ALTER TABLE dreams DROP FOREIGN KEY FK_FD07CC0A2395FCED'); $this->addSql('DROP INDEX IDX_FD07CC0A2395FCED ON dreams'); $this->addSql('ALTER TABLE dreams DROP thematic_id, DROP description'); $this->addSql('ALTER TABLE individual_data DROP status'); $this->addSql('ALTER TABLE projects_boost DROP FOREIGN KEY FK_C3E573562395FCED'); $this->addSql('DROP INDEX IDX_C3E573562395FCED ON projects_boost'); $this->addSql('ALTER TABLE projects_boost DROP thematic_id, DROP description'); $this->addSql('ALTER TABLE projects_inspiring DROP FOREIGN KEY FK_E60CAEC62395FCED'); $this->addSql('DROP INDEX IDX_E60CAEC62395FCED ON projects_inspiring'); $this->addSql('ALTER TABLE projects_inspiring DROP thematic_id, DROP description'); $this->addSql('ALTER TABLE revolts DROP FOREIGN KEY FK_68E7DC9F2395FCED'); $this->addSql('DROP INDEX IDX_68E7DC9F2395FCED ON revolts'); $this->addSql('ALTER TABLE revolts DROP thematic_id, DROP description'); } }