From b7e7f88a39998aa29ce076000a0fdb6c95018163 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Sat, 21 Dec 2024 15:44:47 +0600 Subject: [PATCH] pkp/pkp-lib#1660 set used recommendation uneditable --- .../install/ReviewerRecommendationsMigration.php | 11 ++++++++++- .../upgrade/v3_6_0/I1660_ReviewerRecommendations.php | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/classes/migration/install/ReviewerRecommendationsMigration.php b/classes/migration/install/ReviewerRecommendationsMigration.php index 62288ab41db..989a834b16a 100644 --- a/classes/migration/install/ReviewerRecommendationsMigration.php +++ b/classes/migration/install/ReviewerRecommendationsMigration.php @@ -9,23 +9,32 @@ * * @class ReviewerRecommendationsMigration * - * @brief + * @brief Describe database table structures . */ namespace APP\migration\install; class ReviewerRecommendationsMigration extends \PKP\migration\install\ReviewerRecommendationsMigration { + /** + * @copydoc \PKP\migration\install\ReviewerRecommendationsMigratio::contextTable() + */ public function contextTable(): string { return 'journals'; } + /** + * @copydoc \PKP\migration\install\ReviewerRecommendationsMigratio::settingTable() + */ public function settingTable(): string { return 'journal_settings'; } + /** + * @copydoc \PKP\migration\install\ReviewerRecommendationsMigratio::contextPrimaryKey() + */ public function contextPrimaryKey(): string { return 'journal_id'; diff --git a/classes/migration/upgrade/v3_6_0/I1660_ReviewerRecommendations.php b/classes/migration/upgrade/v3_6_0/I1660_ReviewerRecommendations.php index a30caa6fd61..fafee17729b 100644 --- a/classes/migration/upgrade/v3_6_0/I1660_ReviewerRecommendations.php +++ b/classes/migration/upgrade/v3_6_0/I1660_ReviewerRecommendations.php @@ -9,7 +9,7 @@ * * @class I1660_ReviewerRecommendations.php * - * @brief + * @brief Upgrade migration add recommendations * */ @@ -19,6 +19,9 @@ class I1660_ReviewerRecommendations extends \PKP\migration\upgrade\v3_6_0\I1660_ReviewerRecommendations { + /** + * @copydoc \PKP\migration\upgrade\v3_6_0\I1660_ReviewerRecommendations::systemDefineNonRemovableRecommendations() + */ protected function systemDefineNonRemovableRecommendations(): array { return ReviewerRecommendation::seedableRecommendations();