<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260223094551 extends AbstractMigration
{
public function getDescription(): string
{
return 'Remove a unique constraint for phone attr in User entity.';
}
public function up(Schema $schema): void
{
$this->addSql('DROP INDEX UNIQ_8D93D649444F97DD ON user');
}
public function down(Schema $schema): void
{
$this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649444F97DD ON user (phone)');
}
}