migrations/Version20231108115813.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 Version20231108115813 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 residence_immeuble ADD residence_id INT DEFAULT NULL');$this->addSql('ALTER TABLE residence_immeuble ADD CONSTRAINT FK_D98C35308B225FBD FOREIGN KEY (residence_id) REFERENCES residence (id)');$this->addSql('CREATE INDEX IDX_D98C35308B225FBD ON residence_immeuble (residence_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE residence_immeuble DROP FOREIGN KEY FK_D98C35308B225FBD');$this->addSql('DROP INDEX IDX_D98C35308B225FBD ON residence_immeuble');$this->addSql('ALTER TABLE residence_immeuble DROP residence_id');}}