<?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 Version20220831222427 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE tik_tok_auth ADD union_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('CREATE UNIQUE INDEX UNIQ_A7E2CED92C7B5539 ON tik_tok_auth (union_id)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX UNIQ_A7E2CED92C7B5539 ON tik_tok_auth');
$this->addSql('ALTER TABLE tik_tok_auth DROP union_id');
}
public function isTransactional(): bool
{
return false;
}
}