src/Migrations/Version20220721130459.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 Version20220721130459 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 country_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, caption VARCHAR(255) DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_A1FE6FA42C2AC5D3 (translatable_id), UNIQUE INDEX country_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE olymp_online_category_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, caption VARCHAR(255) DEFAULT NULL, apply_button VARCHAR(255) DEFAULT NULL, apply_description LONGTEXT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_5CC4ED4F2C2AC5D3 (translatable_id), UNIQUE INDEX olymp_online_category_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE olymp_online_direction_langs (id INT AUTO_INCREMENT NOT NULL, direction_id INT NOT NULL, language_locale VARCHAR(5) NOT NULL, test_id INT NOT NULL, INDEX IDX_DFA0CBDCAF73D997 (direction_id), INDEX IDX_DFA0CBDC5D93FFFE (language_locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE olymp_online_language (locale VARCHAR(5) NOT NULL, caption VARCHAR(255) NOT NULL, PRIMARY KEY(locale)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE olympiad_stage_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT DEFAULT NULL, caption VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, place LONGTEXT DEFAULT NULL, place_short VARCHAR(255) DEFAULT NULL, contacts LONGTEXT DEFAULT NULL, locale VARCHAR(5) NOT NULL, INDEX IDX_E9CC48D82C2AC5D3 (translatable_id), UNIQUE INDEX olympiad_stage_translation_unique_translation (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE country_translation ADD CONSTRAINT FK_A1FE6FA42C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES country (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE olymp_online_category_translation ADD CONSTRAINT FK_5CC4ED4F2C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES olymp_online_category (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE olymp_online_direction_langs ADD CONSTRAINT FK_DFA0CBDCAF73D997 FOREIGN KEY (direction_id) REFERENCES olymp_online_direction (id)');
$this->addSql('ALTER TABLE olymp_online_direction_langs ADD CONSTRAINT FK_DFA0CBDC5D93FFFE FOREIGN KEY (language_locale) REFERENCES olymp_online_language (locale)');
$this->addSql('ALTER TABLE olympiad_stage_translation ADD CONSTRAINT FK_E9CC48D82C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES olympiad_stage (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE country CHANGE caption caption VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE olymp_online_category ADD force_locale VARCHAR(255) DEFAULT NULL, ADD countries JSON DEFAULT NULL, ADD federal_districts JSON DEFAULT NULL, CHANGE caption caption VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE olymp_online_participant ADD country_residence_id INT DEFAULT NULL, ADD test_lang VARCHAR(5) DEFAULT NULL, ADD pupil_level VARCHAR(255) DEFAULT NULL, ADD city_residence VARCHAR(255) DEFAULT NULL, ADD doc_type VARCHAR(255) DEFAULT \'passport\', ADD bc_number VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE olymp_online_participant ADD CONSTRAINT FK_EC8114178781D3AF FOREIGN KEY (country_residence_id) REFERENCES country (id)');
$this->addSql('ALTER TABLE olymp_online_participant ADD CONSTRAINT FK_EC8114173470AEAD FOREIGN KEY (test_lang) REFERENCES olymp_online_language (locale)');
$this->addSql('CREATE INDEX IDX_EC8114178781D3AF ON olymp_online_participant (country_residence_id)');
$this->addSql('CREATE INDEX IDX_EC8114173470AEAD ON olymp_online_participant (test_lang)');
$this->addSql('ALTER TABLE olympiad_stage CHANGE caption caption VARCHAR(255) DEFAULT NULL');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) (SELECT id AS translation_id, \'ru\' AS locale, caption FROM country)');
$this->countries();
$this->addSql('INSERT IGNORE INTO olymp_online_category_translation (translatable_id, locale, caption, apply_button, apply_description ) (SELECT id AS translation_id, \'ru\' AS locale, caption, apply_button, apply_description FROM olymp_online_category)');
$this->addSql('INSERT IGNORE INTO olympiad_stage_translation (translatable_id, locale, caption, description, place, place_short, contacts) (SELECT id AS translation_id, \'ru\' AS locale, caption, description, place, place_short, contacts FROM olympiad_stage)');
$this->addSql("insert into olymp_online_language (locale, caption) values ('ru','Русский')");
$this->addSql("insert into olymp_online_language (locale, caption) values ('en','English')");
$this->addSql("insert into olymp_online_language (locale, caption) values ('zh','Chinese')");
$this->addSql("insert into olymp_online_language (locale, caption) values ('pt','Portuguese')");
}
private function countries()
{
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (1, \'en\', \'Australia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (2, \'en\', \'Austria\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (3, \'en\', \'Azerbaijan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (4, \'en\', \'Åland Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (5, \'en\', \'Albania\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (6, \'en\', \'Algeria\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (7, \'en\', \'US Virgin Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (8, \'en\', \'American Samoa\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (9, \'en\', \'Anguilla\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (10, \'en\', \'England\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (11, \'en\', \'Angola\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (12, \'en\', \'Andorra\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (13, \'en\', \'Antarctica\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (14, \'en\', \'Antigua and Barbuda\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (15, \'en\', \'Argentina\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (16, \'en\', \'Armenia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (17, \'en\', \'Aruba\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (18, \'en\', \'Afghanistan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (19, \'en\', \'Bahamas\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (20, \'en\', \'Bangladesh\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (21, \'en\', \'Barbados\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (22, \'en\', \'Bahrain\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (23, \'en\', \'Belize\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (24, \'en\', \'Belarus\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (25, \'en\', \'Belgium\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (26, \'en\', \'Benin\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (27, \'en\', \'Bermuda\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (28, \'en\', \'Bulgaria\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (29, \'en\', \'Bolivia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (30, \'en\', \'Bonaire\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (31, \'en\', \'Bosnia and Herzegovina\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (32, \'en\', \'Botswana\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (33, \'en\', \'Brazil\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (34, \'en\', \'British Indian Ocean Territory\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (35, \'en\', \'British Virgin Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (36, \'en\', \'Brunei\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (37, \'en\', \'Bouvet\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (38, \'en\', \'Burkina Faso\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (39, \'en\', \'Burundi\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (40, \'en\', \'Butane\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (41, \'en\', \'Vanuatu\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (42, \'en\', \'Vatican\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (43, \'en\', \'United Kingdom\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (44, \'en\', \'Hungary\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (45, \'en\', \'Venezuela\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (46, \'en\', \'East Timor\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (47, \'en\', \'Vietnam\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (48, \'en\', \'Gabon\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (49, \'en\', \'Haiti\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (50, \'en\', \'Guyana\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (51, \'en\', \'Gambia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (52, \'en\', \'Ghana\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (53, \'en\', \'Guadeloupe\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (54, \'en\', \'Guatemala\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (55, \'en\', \'Guiana\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (56, \'en\', \'Guinea\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (57, \'en\', \'Guinea-Bissau\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (58, \'en\', \'Germany\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (59, \'en\', \'Guernsey\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (60, \'en\', \'Gibraltar\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (61, \'en\', \'Honduras\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (62, \'en\', \'Hong Kong\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (63, \'en\', \'Grenada\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (64, \'en\', \'Greenland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (65, \'en\', \'Greece\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (66, \'en\', \'Georgia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (67, \'en\', \'Guam\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (68, \'en\', \'Denmark\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (69, \'en\', \'Democratic Republic of the Congo\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (70, \'en\', \'Jersey\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (71, \'en\', \'Djibouti\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (72, \'en\', \'Dominica\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (73, \'en\', \'Dominican Republic\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (74, \'en\', \'Egypt\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (75, \'en\', \'Zambia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (76, \'en\', \'West Sahara\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (77, \'en\', \'Zimbabwe\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (78, \'en\', \'Israel\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (79, \'en\', \'India\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (80, \'en\', \'Indonesia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (81, \'en\', \'Jordan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (82, \'en\', \'Iran\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (83, \'en\', \'Ireland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (84, \'en\', \'Iceland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (85, \'en\', \'Spain\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (86, \'en\', \'Italy\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (87, \'en\', \'Yemen\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (88, \'en\', \'Cape Verde\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (89, \'en\', \'Kazakhstan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (90, \'en\', \'Cayman islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (91, \'en\', \'Cambodia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (92, \'en\', \'Cameroon\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (93, \'en\', \'Canada\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (94, \'en\', \'Qatar\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (95, \'en\', \'Kenya\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (96, \'en\', \'Cyprus\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (97, \'en\', \'Kyrgyzstan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (98, \'en\', \'Kiribati\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (99, \'en\', \'China\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (100, \'en\', \'Coconut islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (101, \'en\', \'Colombia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (102, \'en\', \'Comoros\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (103, \'en\', \'Kosovo\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (104, \'en\', \'Costa Rica\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (105, \'en\', \'Ivory Coast\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (106, \'en\', \'Cuba\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (107, \'en\', \'Kuwait\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (108, \'en\', \'Curacao\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (109, \'en\', \'Laos\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (110, \'en\', \'Latvia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (111, \'en\', \'Lesotho\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (112, \'en\', \'Liberia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (113, \'en\', \'Lebanon\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (114, \'en\', \'Libya\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (115, \'en\', \'Lithuania\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (116, \'en\', \'Liechtenstein\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (117, \'en\', \'Luxembourg\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (118, \'en\', \'Mauritius\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (119, \'en\', \'Mauritania\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (120, \'en\', \'Madagascar\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (121, \'en\', \'Mayotte\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (122, \'en\', \'Macau\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (123, \'en\', \'Macedonia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (124, \'en\', \'Malawi\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (125, \'en\', \'Malaysia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (126, \'en\', \'Mali\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (127, \'en\', \'Maldives\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (128, \'en\', \'Malta\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (129, \'en\', \'Morocco\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (130, \'en\', \'Martinique\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (131, \'en\', \'Marshall Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (132, \'en\', \'Mexico\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (133, \'en\', \'Micronesia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (134, \'en\', \'Mozambique\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (135, \'en\', \'Moldova\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (136, \'en\', \'Monaco\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (137, \'en\', \'Mongolia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (138, \'en\', \'Montserrat\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (139, \'en\', \'Myanmar\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (140, \'en\', \'Namibia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (141, \'en\', \'Nauru\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (142, \'en\', \'Nepal\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (143, \'en\', \'Niger\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (144, \'en\', \'Nigeria\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (145, \'en\', \'Netherlands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (146, \'en\', \'Nicaragua\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (147, \'en\', \'Niue\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (148, \'en\', \'New Zealand\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (149, \'en\', \'New Caledonia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (150, \'en\', \'Norway\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (151, \'en\', \'Norfolk\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (152, \'en\', \'United Arab Emirates\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (153, \'en\', \'Oman\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (154, \'en\', \'Isle Of Man\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (155, \'en\', \'Christmas Island\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (156, \'en\', \'Heard Island and McDonald Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (157, \'en\', \'Cook Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (158, \'en\', \'Pitcairn Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (159, \'en\', \'Saint Helena, Ascension and Tristan da Cunha\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (160, \'en\', \'Pakistan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (161, \'en\', \'Palau\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (162, \'en\', \'Palestinian territories\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (163, \'en\', \'Panama\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (164, \'en\', \'Papua New Guinea\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (165, \'en\', \'Paraguay\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (166, \'en\', \'Peru\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (167, \'en\', \'Poland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (168, \'en\', \'Portugal\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (169, \'en\', \'Puerto Rico\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (170, \'en\', \'Republic of Iraq\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (171, \'en\', \'Republic of the Congo\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (172, \'en\', \'Reunion\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (173, \'en\', \'Russia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (174, \'en\', \'Rwanda\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (175, \'en\', \'Romania\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (176, \'en\', \'Salvador\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (177, \'en\', \'Samoa\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (178, \'en\', \'San Marino\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (179, \'en\', \'Sao Tome and Principe\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (180, \'en\', \'Saudi Arabia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (181, \'en\', \'Swaziland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (182, \'en\', \'North Korea\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (183, \'en\', \'Northern Mariana Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (184, \'en\', \'Seychelles\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (185, \'en\', \'Saint Barthélemy\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (186, \'en\', \'Saint Martin\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (187, \'en\', \'Saint Pierre and Miquelon\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (188, \'en\', \'Senegal\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (189, \'en\', \'Saint Vincent and the Grenadines\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (190, \'en\', \'Saint Kitts and Nevis\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (191, \'en\', \'Saint Lucia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (192, \'en\', \'Serbia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (193, \'en\', \'Singapore\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (194, \'en\', \'Sint Maarten\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (195, \'en\', \'Syria\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (196, \'en\', \'Slovakia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (197, \'en\', \'Slovenia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (198, \'en\', \'Solomon islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (199, \'en\', \'Somalia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (200, \'en\', \'The USSR\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (201, \'en\', \'Sudan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (202, \'en\', \'Suriname\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (203, \'en\', \'USA\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (204, \'en\', \'Sierra Leone\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (205, \'en\', \'Tajikistan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (206, \'en\', \'Thailand\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (207, \'en\', \'Taiwan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (208, \'en\', \'Tanzania\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (209, \'en\', \'Turks and Caicos\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (210, \'en\', \'Togo\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (211, \'en\', \'Tokelau\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (212, \'en\', \'Tonga\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (213, \'en\', \'Trinidad and Tobago\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (214, \'en\', \'Tuvalu\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (215, \'en\', \'Tunisia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (216, \'en\', \'Turkmenistan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (217, \'en\', \'Turkey\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (218, \'en\', \'Uganda\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (219, \'en\', \'Uzbekistan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (220, \'en\', \'Ukraine\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (221, \'en\', \'Wallis and Futuna\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (222, \'en\', \'Uruguay\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (223, \'en\', \'Wales\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (224, \'en\', \'Faroe islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (225, \'en\', \'Fiji\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (226, \'en\', \'Philippines\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (227, \'en\', \'Finland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (228, \'en\', \'Falkland Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (229, \'en\', \'France\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (230, \'en\', \'French polynesia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (231, \'en\', \'French Southern and Antarctic Territories\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (232, \'en\', \'Croatia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (233, \'en\', \'Central African Republic\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (234, \'en\', \'Chad\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (235, \'en\', \'Montenegro\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (236, \'en\', \'Czech Republic\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (237, \'en\', \'Chile\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (238, \'en\', \'Switzerland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (239, \'en\', \'Sweden\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (240, \'en\', \'Scotland\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (241, \'en\', \'Svalbard and Jan Mayen\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (242, \'en\', \'Sri Lanka\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (243, \'en\', \'Ecuador\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (244, \'en\', \'Equatorial Guinea\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (245, \'en\', \'Eritrea\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (246, \'en\', \'Estonia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (247, \'en\', \'Ethiopia\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (248, \'en\', \'South Africa\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (249, \'en\', \'South Georgia and the South Sandwich Islands\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (250, \'en\', \'South Korea\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (251, \'en\', \'South Sudan\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (252, \'en\', \'Jamaica\' )');
$this->addSql('INSERT IGNORE INTO country_translation (translatable_id, locale, caption) values (253, \'en\', \'Japan\' )');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE olymp_online_direction_langs DROP FOREIGN KEY FK_DFA0CBDC5D93FFFE');
$this->addSql('ALTER TABLE olymp_online_participant DROP FOREIGN KEY FK_EC8114173470AEAD');
$this->addSql('DROP TABLE country_translation');
$this->addSql('DROP TABLE olymp_online_category_translation');
$this->addSql('DROP TABLE olymp_online_direction_langs');
$this->addSql('DROP TABLE olymp_online_language');
$this->addSql('DROP TABLE olympiad_stage_translation');
$this->addSql('ALTER TABLE country CHANGE caption caption VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE olymp_online_category DROP force_locale, DROP countries, DROP federal_districts, CHANGE caption caption VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE olymp_online_participant DROP FOREIGN KEY FK_EC8114178781D3AF');
$this->addSql('DROP INDEX IDX_EC8114178781D3AF ON olymp_online_participant');
$this->addSql('DROP INDEX IDX_EC8114173470AEAD ON olymp_online_participant');
$this->addSql('ALTER TABLE olymp_online_participant DROP country_residence_id, DROP test_lang, DROP pupil_level, DROP city_residence, DROP doc_type, DROP bc_number');
$this->addSql('ALTER TABLE olympiad_stage CHANGE caption caption VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
}
}