src/Migrations/Version20211001133618.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 Version20211001133618 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_participant ADD code VARCHAR(255) DEFAULT NULL');$this->addSql('CREATE UNIQUE INDEX pdc ON olymp_online_participant (code, direction_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP INDEX pdc ON olymp_online_participant');$this->addSql('ALTER TABLE olymp_online_participant DROP code');}}