migrations/Version20231109180846.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 Version20231109180846 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 locataire DROP FOREIGN KEY FK_C47CF6EBFCF77503');$this->addSql('DROP INDEX IDX_C47CF6EBFCF77503 ON locataire');$this->addSql('ALTER TABLE locataire DROP societe_id');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE locataire ADD societe_id INT DEFAULT NULL');$this->addSql('ALTER TABLE locataire ADD CONSTRAINT FK_C47CF6EBFCF77503 FOREIGN KEY (societe_id) REFERENCES societe (id) ON UPDATE NO ACTION ON DELETE NO ACTION');$this->addSql('CREATE INDEX IDX_C47CF6EBFCF77503 ON locataire (societe_id)');}}