src/Migrations/Version20210415203403.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 Version20210415203403 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 news CHANGE uuid uuid VARCHAR(36) NOT NULL');$this->addSql('CREATE UNIQUE INDEX UNIQ_1DD39950D17F50A6 ON news (uuid)');$this->addSql('ALTER TABLE olympiad CHANGE uuid uuid VARCHAR(36) NOT NULL');$this->addSql('CREATE UNIQUE INDEX UNIQ_77700B8ED17F50A6 ON olympiad (uuid)');$this->addSql('ALTER TABLE olympiad_stage CHANGE uuid uuid VARCHAR(36) NOT NULL');$this->addSql('CREATE UNIQUE INDEX UNIQ_21AFE505D17F50A6 ON olympiad_stage (uuid)');$this->addSql('ALTER TABLE organisation CHANGE uuid uuid VARCHAR(36) NOT NULL');$this->addSql('CREATE UNIQUE INDEX UNIQ_E6E132B4D17F50A6 ON organisation (uuid)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP INDEX UNIQ_1DD39950D17F50A6 ON news');$this->addSql('ALTER TABLE news CHANGE uuid uuid VARCHAR(36) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');$this->addSql('DROP INDEX UNIQ_77700B8ED17F50A6 ON olympiad');$this->addSql('ALTER TABLE olympiad CHANGE uuid uuid VARCHAR(36) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');$this->addSql('DROP INDEX UNIQ_21AFE505D17F50A6 ON olympiad_stage');$this->addSql('ALTER TABLE olympiad_stage CHANGE uuid uuid VARCHAR(36) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');$this->addSql('DROP INDEX UNIQ_E6E132B4D17F50A6 ON organisation');$this->addSql('ALTER TABLE organisation CHANGE uuid uuid VARCHAR(36) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');}}