<?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 Version20220613141216 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 cancellation_parameters ADD limit_hours INT DEFAULT 48, ADD limit_date DATETIME DEFAULT NULL, ADD min_capacity INT DEFAULT 0, ADD is_auto_cancel TINYINT(1) DEFAULT 1, CHANGE limit_a limit_a INT DEFAULT NULL, CHANGE limit_b limit_b INT DEFAULT NULL, CHANGE limit_c limit_c INT DEFAULT NULL, CHANGE limit_d limit_d INT DEFAULT NULL, CHANGE amount_n amount_n DOUBLE PRECISION DEFAULT NULL, CHANGE amount_m amount_m DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cancellation_parameters DROP limit_hours, DROP limit_date, DROP min_capacity, DROP is_auto_cancel, CHANGE limit_a limit_a INT NOT NULL, CHANGE limit_b limit_b INT NOT NULL, CHANGE limit_c limit_c INT NOT NULL, CHANGE limit_d limit_d INT NOT NULL, CHANGE amount_n amount_n DOUBLE PRECISION NOT NULL, CHANGE amount_m amount_m DOUBLE PRECISION NOT NULL');
}
}