<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230124135355 extends AbstractMigration
{
public function getDescription(): string
{
return 'Remove unique index on country in geolocations';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE geolocation DROP INDEX UNIQ_9DC0E5B4F92F3E70, ADD INDEX IDX_9DC0E5B4F92F3E70 (country_id)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE geolocation DROP INDEX IDX_9DC0E5B4F92F3E70, ADD UNIQUE INDEX UNIQ_9DC0E5B4F92F3E70 (country_id)');
}
public function isTransactional(): bool
{
return false;
}
}