diff --git a/src/CoreBundle/DataFixtures/LanguageFixtures.php b/src/CoreBundle/DataFixtures/LanguageFixtures.php index 2e2bb64e1c0..9f8c5f379a6 100644 --- a/src/CoreBundle/DataFixtures/LanguageFixtures.php +++ b/src/CoreBundle/DataFixtures/LanguageFixtures.php @@ -544,6 +544,14 @@ public static function getLanguages(): array 'format' => 'title first_name last_name', 'sort_by' => 'first_name', ], + [ + 'original_name' => 'မြန်မာဘာသာ', + 'english_name' => 'burmese', + 'isocode' => 'my_MM', + 'available' => 0, + 'format' => 'title first_name last_name', + 'sort_by' => 'first_name', + ], ]; } } diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20250918152900.php b/src/CoreBundle/Migrations/Schema/V200/Version20250918152900.php new file mode 100644 index 00000000000..06c32ed2b26 --- /dev/null +++ b/src/CoreBundle/Migrations/Schema/V200/Version20250918152900.php @@ -0,0 +1,32 @@ +addSql(" + INSERT INTO language (original_name, english_name, isocode, available) + SELECT 'မြန်မာဘာသာ', 'burmese', 'my_MM', 0 + WHERE NOT EXISTS (SELECT 1 FROM language WHERE isocode = 'my_MM') + "); + } + + public function down(Schema $schema): void + { + $this->addSql("DELETE FROM language WHERE isocode = 'my_MM'"); + } +}