src/Migrations/Version20210419211533.php line 1
<?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 Version20210419211533 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_confirmation MODIFY id INT NOT NULL');
$this->addSql('ALTER TABLE olymp_online_participant_confirmation DROP PRIMARY KEY');
$this->addSql('ALTER TABLE olymp_online_participant_confirmation ADD uuid VARCHAR(36) NOT NULL, ADD ip VARCHAR(255) DEFAULT NULL, DROP id');
$this->addSql('ALTER TABLE olymp_online_participant_confirmation ADD PRIMARY KEY (uuid)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE olymp_online_participant_confirmation ADD id INT AUTO_INCREMENT NOT NULL, DROP uuid, DROP ip, DROP PRIMARY KEY, ADD PRIMARY KEY (id)');
}
}