Skip to content

Commit

Permalink
pkp/pkp-lib#9533 Decision migration for OPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Dec 5, 2023
1 parent 3fce0fc commit 220c7f8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions classes/migration/upgrade/v3_4_0/I7725_DecisionConstantsUpdate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?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_DECLINE to \PKP\decision\Decision::REVERT_INITIAL_DECLINE
// \PKP\decision\Decision::REVERT_DECLINE removed in 3.4
[
'stage_id' => WORKFLOW_STAGE_ID_PRODUCTION,
'current_value' => 17,
'updated_value' => 16,
]
];
}
}
1 change: 1 addition & 0 deletions dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<migration class="APP\migration\upgrade\v3_4_0\I9040_DropSettingType"/>
<migration class="PKP\migration\upgrade\v3_4_0\I9039_DropDeprecatedFields"/>
<migration class="APP\migration\upgrade\v3_4_0\I8933_EventLogLocalized"/>
<migration class="APP\migration\upgrade\v3_4_0\I7725_DecisionConstantsUpdate"/>
<note file="docs/release-notes/README-3.4.0" />
</upgrade>

Expand Down

0 comments on commit 220c7f8

Please sign in to comment.