<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20221005165720 extends AbstractMigration
{
public function getDescription(): string
{
return 'Change manager-to-sponsor relationship';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE manager DROP INDEX UNIQ_FA2425B912F7FB51, ADD INDEX IDX_FA2425B912F7FB51 (sponsor_id)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE manager DROP INDEX IDX_FA2425B912F7FB51, ADD UNIQUE INDEX UNIQ_FA2425B912F7FB51 (sponsor_id)');
}
public function isTransactional(): bool
{
return false;
}
}