-
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#9533 Decision migration for OPS
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
classes/migration/upgrade/v3_4_0/I7725_DecisionConstantsUpdate.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,38 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/upgrade/v3_4_0/I7725_DecisionConstantsUpdate.php | ||
* | ||
* Copyright (c) 2014-2023 Simon Fraser University | ||
* Copyright (c) 2000-2023 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class I7725_DecisionConstantsUpdate | ||
* | ||
* @brief Editorial decision constant sync up across all application | ||
* | ||
* @see https://github.com/pkp/pkp-lib/issues/7725 | ||
*/ | ||
|
||
namespace APP\migration\upgrade\v3_4_0; | ||
|
||
class I7725_DecisionConstantsUpdate extends \PKP\migration\upgrade\v3_4_0\I7725_DecisionConstantsUpdate | ||
{ | ||
public function getDecisionMappings(): array | ||
{ | ||
return [ | ||
// \PKP\decision\Decision::INITIAL_DECLINE | ||
[ | ||
'stage_id' => WORKFLOW_STAGE_ID_PRODUCTION, | ||
'current_value' => 9, | ||
'updated_value' => 8, | ||
], | ||
// \PKP\decision\Decision::REVERT_INITIAL_DECLINE | ||
[ | ||
'stage_id' => WORKFLOW_STAGE_ID_PRODUCTION, | ||
'current_value' => 18, | ||
'updated_value' => 16, | ||
] | ||
]; | ||
} | ||
} |
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