<?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 Version20240417094537 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 media_hebergement (id INT AUTO_INCREMENT NOT NULL, id_iresa INT NOT NULL, name VARCHAR(255) NOT NULL, date_created DATETIME DEFAULT NULL, date_updated DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET UTF8 COLLATE `UTF8_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE typologie ADD info_room VARCHAR(255) DEFAULT NULL, ADD info_bathroom VARCHAR(255) DEFAULT NULL, ADD info_exterior VARCHAR(255) DEFAULT NULL, ADD info_clim TINYINT(1) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE media_hebergement');
$this->addSql('ALTER TABLE typologie DROP info_room, DROP info_bathroom, DROP info_exterior, DROP info_clim');
}
}