src/Migrations/Version20210419132640.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20210419132640 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 olymp_online ADD interval_from DATE DEFAULT NULL, ADD interval_to DATE DEFAULT NULL');$this->addSql('ALTER TABLE olymp_online_direction ADD interval_from DATE DEFAULT NULL, ADD interval_to DATE DEFAULT NULL');$this->addSql('ALTER TABLE olymp_online_participant ADD p_department_name VARCHAR(255) DEFAULT NULL, ADD p_department_code VARCHAR(255) DEFAULT NULL, DROP p_org, DROP p_org_code, CHANGE p_date p_issue_date DATETIME DEFAULT NULL');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE olymp_online DROP interval_from, DROP interval_to');$this->addSql('ALTER TABLE olymp_online_direction DROP interval_from, DROP interval_to');$this->addSql('ALTER TABLE olymp_online_participant ADD p_org VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD p_org_code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, DROP p_department_name, DROP p_department_code, CHANGE p_issue_date p_date DATETIME DEFAULT NULL');}}