chore: in fact, it is ICANN that accredits the registrars

This commit is contained in:
Maël Gangloff
2025-09-12 23:34:58 +02:00
parent 71e23ca83d
commit 0be609cc9d
5 changed files with 55 additions and 18 deletions

View File

@@ -0,0 +1,37 @@
<?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 Version20250912212814 extends AbstractMigration
{
public function getDescription(): string
{
return 'Rename IANA columns to ICANN';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE entity RENAME COLUMN iana_registrar_name TO icann_registrar_name');
$this->addSql('ALTER TABLE entity RENAME COLUMN iana_rdap_base_url TO icann_rdap_base_url');
$this->addSql('ALTER TABLE entity RENAME COLUMN iana_status TO icann_status');
$this->addSql('ALTER TABLE entity RENAME COLUMN iana_updated TO icann_updated');
$this->addSql('ALTER TABLE entity RENAME COLUMN iana_date TO icann_date');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE entity RENAME COLUMN icann_registrar_name TO iana_registrar_name');
$this->addSql('ALTER TABLE entity RENAME COLUMN icann_rdap_base_url TO iana_rdap_base_url');
$this->addSql('ALTER TABLE entity RENAME COLUMN icann_status TO iana_status');
$this->addSql('ALTER TABLE entity RENAME COLUMN icann_updated TO iana_updated');
$this->addSql('ALTER TABLE entity RENAME COLUMN icann_date TO iana_date');
}
}