Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/CoreBundle/DataFixtures/LanguageFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
}
}
32 changes: 32 additions & 0 deletions src/CoreBundle/Migrations/Schema/V200/Version20250918152900.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Migrations\Schema\V200;

use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;

final class Version20250918152900 extends AbstractMigrationChamilo
{
public function getDescription(): string
{
return "Languages: insert Burmese (my_MM) if missing.";
}

public function up(Schema $schema): void
{
$this->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'");
}
}
Loading