src/Migrations/Version20220721134652.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 Version20220721134652 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE federal_region_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, caption VARCHAR(255) DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_7F38952E2C2AC5D3 (translatable_id), UNIQUE INDEX federal_region_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE federal_region_translation ADD CONSTRAINT FK_7F38952E2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES federal_region (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE federal_region CHANGE caption caption VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE federal_region CHANGE caption caption VARCHAR(255) DEFAULT NULL');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (1, \'en\', \'Belgorod region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (2, \'en\', \'Bryansk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (3, \'en\', \'Vladimir region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (4, \'en\', \'Voronezh region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (5, \'en\', \'Ivanovo region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (6, \'en\', \'Kaluga region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (7, \'en\', \'Kostroma region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (8, \'en\', \'Kursk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (9, \'en\', \'Lipetsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (10, \'en\', \'Moscow region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (11, \'en\', \'Oryol Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (12, \'en\', \'Ryazan Oblast\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (13, \'en\', \'Smolensk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (14, \'en\', \'Tambov Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (15, \'en\', \'Tver region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (16, \'en\', \'Tula region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (17, \'en\', \'Yaroslavskaya oblast\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (18, \'en\', \'Moscow is a city of federal significance\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (19, \'en\', \'Republic of Bashkortostan\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (20, \'en\', \'Mari El Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (21, \'en\', \'The Republic of Mordovia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (22, \'en\', \'Republic of Tatarstan (Tatarstan)\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (23, \'en\', \'Udmurt republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (24, \'en\', \'Chuvash Republic - Chuvashia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (25, \'en\', \'Perm region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (26, \'en\', \'Kirov region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (27, \'en\', \'Nizhny Novgorod Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (28, \'en\', \'Orenburg region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (29, \'en\', \'Penza region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (30, \'en\', \'Samara Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (31, \'en\', \'Saratov region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (32, \'en\', \'Ulyanovsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (33, \'en\', \'Republic of Karelia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (34, \'en\', \'Komi Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (35, \'en\', \'Arhangelsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (36, \'en\', \'Vologda Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (37, \'en\', \'Kaliningrad region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (38, \'en\', \'Leningrad region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (39, \'en\', \'Murmansk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (40, \'en\', \'Novgorod region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (41, \'en\', \'Pskov region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (42, \'en\', \'St. Petersburg is a city of federal significance\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (43, \'en\', \'Nenets Autonomous Okrug\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (44, \'en\', \'Kurgan region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (45, \'en\', \'Sverdlovsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (46, \'en\', \'Tyumen region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (47, \'en\', \'Chelyabinsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (48, \'en\', \'Khanty-Mansi Autonomous Okrug - Yugra\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (49, \'en\', \'Yamalo-Nenets Autonomous Okrug\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (50, \'en\', \'Republic of Adygea (Adygea)\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (51, \'en\', \'Republic of Kalmykia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (52, \'en\', \'Republic of Crimea\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (53, \'en\', \'Krasnodar region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (54, \'en\', \'Astrakhan region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (55, \'en\', \'Volgograd region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (56, \'en\', \'Rostov region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (57, \'en\', \'Sevastopol is a city of federal significance\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (58, \'en\', \'Altai Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (59, \'en\', \'Tyva Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (60, \'en\', \'The Republic of Khakassia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (61, \'en\', \'Altai region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (62, \'en\', \'Krasnoyarsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (63, \'en\', \'Irkutsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (64, \'en\', \'Kemerovo region — Kuzbass\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (65, \'en\', \'Novosibirsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (66, \'en\', \'Omsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (67, \'en\', \'Tomsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (68, \'en\', \'The Republic of Buryatia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (69, \'en\', \'The Republic of Sakha (Yakutia)\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (70, \'en\', \'Zabaykalsky Krai\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (71, \'en\', \'Kamchatka Krai\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (72, \'en\', \'Primorsky Krai\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (73, \'en\', \'Khabarovsk region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (74, \'en\', \'Amurskaya Oblast\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (75, \'en\', \'Magadan Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (76, \'en\', \'Sakhalin region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (77, \'en\', \'Jewish Autonomous Region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (78, \'en\', \'Chukotka Autonomous Okrug\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (79, \'en\', \'The Republic of Dagestan\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (80, \'en\', \'The Republic of Ingushetia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (81, \'en\', \'Kabardino-Balkarian Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (82, \'en\', \'Karachay-Cherkess Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (83, \'en\', \'Republic of North Ossetia - Alania\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (84, \'en\', \'Chechen Republic\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (85, \'en\', \'Stavropol region\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (88, \'en\', \'The Republic of Buryatia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (89, \'en\', \'Zabaykalsky Krai\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (90, \'en\', \'The Republic of Buryatia\' )');
$this->addSql('INSERT IGNORE INTO federal_region_translation (translatable_id, locale, caption) values (91, \'en\', \'Zabaykalsky Krai\' )');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE federal_region_translation');
$this->addSql('ALTER TABLE federal_region CHANGE caption caption VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
}
}