更新 'installer/Migration/V5_4_0/Migration.php'

This commit is contained in:
zhongjin 2023-05-05 21:52:15 +08:00
parent 71c3e53235
commit 9dc69231eb

View File

@ -42,14 +42,6 @@ class Migration extends AbstractMigration
$this->getLangStringHelper()->insertOrUpdateLangStrings($group);
}
$this->updateLangStringVersion($this->getVersion());
$langCodes = [
'zh_Hans_CN'
];
foreach ($langCodes as $langCode) {
// $this->getTranslationHelper()->addTranslations($langCode);
}
$this->getConnection()->createQueryBuilder()
->insert('ohrm_module')
@ -125,6 +117,15 @@ class Migration extends AbstractMigration
$this->getSchemaHelper()->addOrChangeColumns('ohrm_migration_log', [
'php_version' => ['Type' => Type::getType(Types::STRING), 'Length' => 255],
]);
$langCodes = [
'en_US',
'zh_Hans_CN'
];
foreach ($langCodes as $langCode) {
$this->getTranslationHelper()->addTranslations($langCode);
}
$this->updateLangStringVersion($this->getVersion());
}
/**