<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20200210103033 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE infos_residence ADD info_car LONGTEXT DEFAULT NULL, ADD info_plane LONGTEXT DEFAULT NULL, ADD info_train LONGTEXT DEFAULT NULL, ADD info_check_in LONGTEXT DEFAULT NULL, ADD info_check_out LONGTEXT DEFAULT NULL, ADD info_reception LONGTEXT DEFAULT NULL, ADD info_pool LONGTEXT DEFAULT NULL, ADD info_taxanddeposit LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE infos_residence DROP info_car, DROP info_plane, DROP info_train, DROP info_check_in, DROP info_check_out, DROP info_reception, DROP info_pool, DROP info_taxanddeposit');
}
}