<?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 Version20190814192019 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_grade CHANGE min_score_a min_a INT DEFAULT NULL, CHANGE max_score_a max_a INT DEFAULT NULL, CHANGE min_score_b min_b INT DEFAULT NULL, CHANGE max_score_b max_b INT DEFAULT NULL, CHANGE min_score_c min_c INT DEFAULT NULL, CHANGE max_score_c max_c INT DEFAULT NULL, CHANGE min_score_d min_d INT DEFAULT NULL, CHANGE max_score_d max_d INT DEFAULT NULL, CHANGE min_score_f min_f INT DEFAULT NULL, CHANGE max_score_f max_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_grade CHANGE min_a min_score_a INT DEFAULT NULL, CHANGE max_a max_score_a INT DEFAULT NULL, CHANGE min_b min_score_b INT DEFAULT NULL, CHANGE max_b max_score_b INT DEFAULT NULL, CHANGE min_c min_score_c INT DEFAULT NULL, CHANGE max_c max_score_c INT DEFAULT NULL, CHANGE min_d min_score_d INT DEFAULT NULL, CHANGE max_d max_score_d INT DEFAULT NULL, CHANGE min_f min_score_f INT DEFAULT NULL, CHANGE max_f max_score_f INT DEFAULT NULL');
}
}