forked from pkp/ojs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#1660 Customizable Reviewer Recommendations
- Loading branch information
1 parent
2ef3c55
commit b0cbeed
Showing
4 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
classes/migration/install/ReviewerRecommendationsMigration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/install/ReviewerRecommendationsMigration.php | ||
* | ||
* Copyright (c) 2024 Simon Fraser University | ||
* Copyright (c) 2024 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class ReviewerRecommendationsMigration | ||
* | ||
* @brief | ||
*/ | ||
|
||
namespace APP\migration\install; | ||
|
||
class ReviewerRecommendationsMigration extends \PKP\migration\install\ReviewerRecommendationsMigration | ||
{ | ||
public function contextTable(): string | ||
{ | ||
return 'journals'; | ||
} | ||
|
||
public function contextPrimaryKey(): string | ||
{ | ||
return 'journal_id'; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
classes/migration/upgrade/v3_6_0/I1660_ReviewerRecommendations.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/upgrade/v3_6_0/I1660_ReviewerRecommendations.php | ||
* | ||
* Copyright (c) 2024 Simon Fraser University | ||
* Copyright (c) 2024 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class I1660_ReviewerRecommendations.php | ||
* | ||
* @brief | ||
* | ||
*/ | ||
|
||
namespace APP\migration\upgrade\v3_6_0; | ||
|
||
use APP\migration\install\ReviewerRecommendationsMigration; | ||
|
||
class I1660_ReviewerRecommendations extends \PKP\migration\Migration | ||
{ | ||
/** | ||
* Run the migration. | ||
*/ | ||
public function up(): void | ||
{ | ||
(new ReviewerRecommendationsMigration($this->_installer, $this->_attributes))->up(); | ||
} | ||
|
||
/** | ||
* Reverse the migration | ||
*/ | ||
public function down(): void | ||
{ | ||
(new ReviewerRecommendationsMigration($this->_installer, $this->_attributes))->down(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters