<?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 Version20190813181955 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('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE config_source ADD min_score_a INT DEFAULT NULL, ADD max_score_a INT DEFAULT NULL, ADD min_score_b INT DEFAULT NULL, ADD max_score_b INT DEFAULT NULL, ADD min_score_c INT DEFAULT NULL, ADD max_score_c INT DEFAULT NULL, ADD min_score_d INT DEFAULT NULL, ADD max_score_d INT DEFAULT NULL, ADD min_score_f INT DEFAULT NULL, ADD max_score_f INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE config_source DROP min_score_a, DROP max_score_a, DROP min_score_b, DROP max_score_b, DROP min_score_c, DROP max_score_c, DROP min_score_d, DROP max_score_d, DROP min_score_f, DROP max_score_f');
}
}