<?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 Version20200204145432 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 DROP INDEX UNIQ_9AF8D8828B225FBD, ADD INDEX IDX_9AF8D8828B225FBD (residence_id)');
$this->addSql('ALTER TABLE infos_residence ADD lang VARCHAR(10) DEFAULT NULL, ADD plus_family LONGTEXT DEFAULT NULL, ADD plus_bienetre LONGTEXT DEFAULT NULL, DROP plus_ateya_family, DROP plus_ateya_bienetre');
}
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 INDEX IDX_9AF8D8828B225FBD, ADD UNIQUE INDEX UNIQ_9AF8D8828B225FBD (residence_id)');
$this->addSql('ALTER TABLE infos_residence ADD plus_ateya_family LONGTEXT DEFAULT NULL COLLATE utf8_unicode_ci, ADD plus_ateya_bienetre LONGTEXT DEFAULT NULL COLLATE utf8_unicode_ci, DROP lang, DROP plus_family, DROP plus_bienetre');
}
}