<?php
/* @noinspection PhpUnused */
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use Symfony\Component\Intl\Countries;
/**
* Auto-generated Migration: Please modify to your needs!
*
* @package API
* @internal
*/
final class Version20220506113218 extends AbstractMigration
{
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
public function getDescription(): string
{
return
"- Seeding of country table.";
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$list = '(\'' . implode('\'),(\'', Countries::getCountryCodes()) . '\');';
$this->addSql(
"
INSERT INTO country
(id)
VALUES
$list
"
);
}
}