<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250929135414 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('CREATE TABLE residence_replacement_suggestion (id INT AUTO_INCREMENT NOT NULL, residence_id INT DEFAULT NULL, INDEX IDX_4B3AD2988B225FBD (residence_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET UTF8 COLLATE `UTF8_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE residence_replacement_suggestion ADD CONSTRAINT FK_4B3AD2988B225FBD FOREIGN KEY (residence_id) REFERENCES residence (id)');
$this->addSql('ALTER TABLE residence CHANGE discontinued discontinued TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE residence_replacement_suggestion');
$this->addSql('ALTER TABLE residence CHANGE discontinued discontinued TINYINT(1) DEFAULT 0');
}
}