mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: delete entity in down() migration
This commit is contained in:
parent
1c66821fb6
commit
5c17bb5338
@ -33,6 +33,9 @@ final class Version20251023000555 extends AbstractMigration
|
||||
$this->addSql('ALTER TABLE entity DROP CONSTRAINT FK_E2844687CB19E6A');
|
||||
$this->addSql('DROP INDEX IDX_E2844687CB19E6A');
|
||||
$this->addSql('DROP INDEX UNIQ_E28446850F7084E918020D97CB19E6A');
|
||||
$this->addSql('DELETE FROM domain_entity WHERE entity_uid IN (SELECT id FROM entity WHERE from_accredited_registrar_id IS NOT NULL)');
|
||||
$this->addSql('DELETE FROM entity_event WHERE entity_uid IN (SELECT id FROM entity WHERE from_accredited_registrar_id IS NOT NULL)');
|
||||
$this->addSql('DELETE FROM entity WHERE from_accredited_registrar_id IS NOT NULL');
|
||||
$this->addSql('ALTER TABLE entity DROP from_accredited_registrar_id');
|
||||
$this->addSql('CREATE UNIQUE INDEX uniq_e28446850f7084e918020d9 ON entity (tld_id, handle)');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user