<?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 Version20220616170925 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 inscription ADD is_redouble TINYINT(1) DEFAULT \'0\', ADD type_inscription VARCHAR(255) DEFAULT \'NORMAL\' COMMENT \'(DC2Type:typeInscription)\', CHANGE is_recompose is_recompose TINYINT(1) DEFAULT \'0\'');
$this->addSql('UPDATE inscription SET type_inscription = \'RECOMPOSE\' WHERE is_recompose = 1');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE inscription DROP is_redouble, DROP type_inscription, CHANGE is_recompose is_recompose TINYINT(1) DEFAULT NULL');
}
}