From c64eaeb2d2adbe01bfd66d0366bcecf63a06934f Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Thu, 11 Jan 2024 11:29:46 +0300 Subject: [PATCH] pkp/pkp-lib#9487 Included common fields for extra reliability --- classes/migration/upgrade/PKPv3_3_0UpgradeMigration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.php b/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.php index 1db39175b0c..82cc0ac8dd6 100755 --- a/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.php +++ b/classes/migration/upgrade/PKPv3_3_0UpgradeMigration.php @@ -770,7 +770,7 @@ private function _settingsAsJSON() }); } elseif (Schema::hasColumn($tableName, 'setting_type')) { try { - $settings = DB::table($tableName)->where('setting_type', 'object')->get(); + $settings = DB::table($tableName, 's')->where('setting_type', 'object')->get(['setting_name', 'setting_value', 's.*']); } catch (Exception $e) { error_log("Failed to migrate the settings entity \"{$tableName}\"\n" . $e); continue;