migrations/Version20230614072909.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20230614072909 extends AbstractMigration{public function getDescription(): string{return '';}public function up(Schema $schema): void{// this up() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE event ADD type_intervention_id INT DEFAULT NULL');$this->addSql('ALTER TABLE event ADD CONSTRAINT FK_3BAE0AA7799AAC17 FOREIGN KEY (type_intervention_id) REFERENCES type_intervention (id)');$this->addSql('CREATE INDEX IDX_3BAE0AA7799AAC17 ON event (type_intervention_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP INDEX UNIQ_1DAAE648AEA34913 ON licence');$this->addSql('ALTER TABLE event DROP FOREIGN KEY FK_3BAE0AA7799AAC17');$this->addSql('DROP INDEX IDX_3BAE0AA7799AAC17 ON event');}}