From 887c9c5a55b598001626173d2b6e4a37fba2eae9 Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Tue, 14 Feb 2023 18:03:37 +0200 Subject: [PATCH] pkp/pkp-lib#8598 DB Migration added --- .../upgrade/v3_4_0/MergeLocalesMigration.php | 35 +++++++++++++++++++ config.TEMPLATE.inc.php | 2 +- dbscripts/xml/upgrade.xml | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php 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 00000000000..70182c852d1 --- /dev/null +++ b/classes/migration/upgrade/v3_4_0/MergeLocalesMigration.php @@ -0,0 +1,35 @@ + 'press_id', + 'publication_format_settings' => 'publication_format_id', + 'series_settings' => 'series_id', + 'spotlight_settings' => 'spotlight_id', + 'submission_chapter_settings' => 'chapter_id', + ])->merge(parent::getSettingsTables()); + } +} diff --git a/config.TEMPLATE.inc.php b/config.TEMPLATE.inc.php index 8ef7fdf000a..a04b1d510fd 100644 --- a/config.TEMPLATE.inc.php +++ b/config.TEMPLATE.inc.php @@ -196,7 +196,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 bf02577b184..ecd980afdc8 100644 --- a/dbscripts/xml/upgrade.xml +++ b/dbscripts/xml/upgrade.xml @@ -168,6 +168,7 @@ +