diff --git a/migrations/Version20250811115400.php b/migrations/Version20250811115400.php new file mode 100644 index 0000000..876d7e7 --- /dev/null +++ b/migrations/Version20250811115400.php @@ -0,0 +1,59 @@ + "'".addslashes($h)."'", RDAPService::ENTITY_HANDLE_BLACKLIST) + ); + + $this->addSql(" + DELETE FROM entity_event + WHERE entity_uid IN ( + SELECT id FROM entity WHERE handle IN ($handlesList) + ) + "); + + $this->addSql(" + DELETE FROM domain_entity + WHERE entity_uid IN ( + SELECT id FROM entity WHERE handle IN ($handlesList) + ) + "); + + $this->addSql(" + DELETE FROM nameserver_entity + WHERE entity_uid IN ( + SELECT id FROM entity WHERE handle IN ($handlesList) + ) + "); + + $this->addSql(" + DELETE FROM entity + WHERE handle IN ($handlesList) + "); + } + + public function down(Schema $schema): void + { + $this->write('Cannot restore deleted entities'); + } +} diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index a45bdef..c4d8288 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -80,10 +80,14 @@ readonly class RDAPService 'ANO00-FRNIC', 'not applicable', 'REDACTED FOR PRIVACY-REGISTRANT', + 'REDACTED FOR PRIVACY-TECH', 'REDACTED FOR PRIVACY', + 'REDACTED-SIDN', 'REGISTRANT', 'REGISTRAR', + 'ABUSE-CONTACT', 'None', + 'Private', ]; /* @see https://www.iana.org/assignments/registrar-ids/registrar-ids.xhtml */