<?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 Version20211029100518 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 scenario_project ADD high_quality TINYINT(1) DEFAULT \'0\' NOT NULL, CHANGE phone_number phone_number VARCHAR(25) DEFAULT NULL');
$this->addSql('ALTER TABLE scenario DROP INDEX UNIQ_3E45C8D8D2B8890, ADD INDEX IDX_3E45C8D8D2B8890 (ressource1_id)');
$this->addSql('ALTER TABLE scenario DROP INDEX UNIQ_3E45C8D81F9E277E, ADD INDEX IDX_3E45C8D81F9E277E (ressource2_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE scenario_project DROP high_quality, CHANGE phone_number phone_number VARCHAR(25) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE scenario DROP INDEX IDX_3E45C8D8D2B8890, ADD UNIQUE INDEX UNIQ_3E45C8D8D2B8890 (ressource1_id)');
$this->addSql('ALTER TABLE scenario DROP INDEX IDX_3E45C8D81F9E277E, ADD UNIQUE INDEX UNIQ_3E45C8D81F9E277E (ressource2_id)');
}
}