Skip to content

Commit

Permalink
pkp/pkp-lib#1660 set used recommendation uneditable
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Jan 6, 2025
1 parent 9f6b618 commit b7e7f88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion classes/migration/install/ReviewerRecommendationsMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @class I1660_ReviewerRecommendations.php
*
* @brief
* @brief Upgrade migration add recommendations
*
*/

Expand All @@ -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();
Expand Down

0 comments on commit b7e7f88

Please sign in to comment.