diff --git a/classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php b/classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php new file mode 100644 index 0000000000..f6c5ff6a6a --- /dev/null +++ b/classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php @@ -0,0 +1,59 @@ +get(); + + foreach ($publicationGalleys as $publicationGalley) { + $this->updateSingleValueLocale($publicationGalley->locale, 'publication_galleys', 'locale', 'galley_id', $publicationGalley->galley_id); + } + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + throw new DowngradeNotSupportedException(); + } + + protected function getSettingsTables(): Collection + { + return collect([ + 'server_settings' => 'server_id', + 'publication_galley_settings' => 'galley_id', + 'section_settings' => 'section_id', + ])->merge(parent::getSettingsTables()); + } +} diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index a38a96a1c2..9bbb75b62b 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -204,7 +204,7 @@ [i18n] ; Default locale -locale = en_US +locale = en ; Database connection character set connection_charset = utf8 diff --git a/dbscripts/xml/upgrade.xml b/dbscripts/xml/upgrade.xml index 70e3243609..3a6109034a 100644 --- a/dbscripts/xml/upgrade.xml +++ b/dbscripts/xml/upgrade.xml @@ -84,6 +84,7 @@ +