src/Migrations/Version20220804105800.php line 1
<?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 Version20220804105800 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add ru region';
}
public function up(Schema $schema): void
{
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption ) (SELECT id AS translation_id, \'ru\' AS locale, caption FROM federal_region)');
}
public function down(Schema $schema): void
{
}
}