<?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 Version20220331152151 extends AbstractMigration
{
public function getDescription(): string
{
return 'Supprime la contrainte "unique" sur l\'index par email.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE company DROP INDEX UNIQ_4FBF094FE7927C74, ADD INDEX email_index (email)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE company DROP INDEX email_index, ADD UNIQUE INDEX UNIQ_4FBF094FE7927C74 (email)');
}
}