diff --git a/classes/decision/Decision.php b/classes/decision/Decision.php
index 3a0717157e5..165ef01a34e 100644
--- a/classes/decision/Decision.php
+++ b/classes/decision/Decision.php
@@ -25,11 +25,6 @@
class Decision extends BaseDecision
{
- public const ACCEPT = 1;
- public const PENDING_REVISIONS = 2;
- public const RESUBMIT = 3;
- public const DECLINE = 4;
- public const EXTERNAL_REVIEW = 8;
}
if (!PKP_STRICT_MODE) {
diff --git a/classes/migration/upgrade/v3_4_0/I7725_DecisionConstantsUpdate.php b/classes/migration/upgrade/v3_4_0/I7725_DecisionConstantsUpdate.php
new file mode 100644
index 00000000000..5216f6a1923
--- /dev/null
+++ b/classes/migration/upgrade/v3_4_0/I7725_DecisionConstantsUpdate.php
@@ -0,0 +1,147 @@
+ [WORKFLOW_STAGE_ID_EDITING],
+ 'current_value' => 1,
+ 'updated_value' => 2,
+ ],
+
+ // \PKP\decision\Decision::EXTERNAL_REVIEW
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 8,
+ 'updated_value' => 3,
+ ],
+
+ // \PKP\decision\Decision::PENDING_REVISIONS
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 2,
+ 'updated_value' => 4,
+ ],
+
+ // \PKP\decision\Decision::RESUBMIT
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 3,
+ 'updated_value' => 5,
+ ],
+
+ // \PKP\decision\Decision::DECLINE
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 4,
+ 'updated_value' => 6,
+ ],
+
+ // \PKP\decision\Decision::INITIAL_DECLINE
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_SUBMISSION],
+ 'current_value' => 9,
+ 'updated_value' => 8,
+ ],
+
+ // \PKP\decision\Decision::RECOMMEND_ACCEPT
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 11,
+ 'updated_value' => 9,
+ ],
+
+ // \PKP\decision\Decision::RECOMMEND_PENDING_REVISIONS
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 12,
+ 'updated_value' => 10,
+ ],
+
+ // \PKP\decision\Decision::RECOMMEND_RESUBMIT
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 13,
+ 'updated_value' => 11,
+ ],
+
+ // \PKP\decision\Decision::RECOMMEND_DECLINE
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 14,
+ 'updated_value' => 12,
+ ],
+
+ // \PKP\decision\Decision::NEW_EXTERNAL_ROUND
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 16,
+ 'updated_value' => 14,
+ ],
+
+ // \PKP\decision\Decision::REVERT_DECLINE
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 17,
+ 'updated_value' => 15,
+ ],
+
+ // \PKP\decision\Decision::REVERT_INITIAL_DECLINE
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_SUBMISSION],
+ 'current_value' => 18,
+ 'updated_value' => 16
+ ],
+
+ // \PKP\decision\Decision::SKIP_EXTERNAL_REVIEW
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EDITING],
+ 'current_value' => 19,
+ 'updated_value' => 17,
+ ],
+
+ // \PKP\decision\Decision::BACK_FROM_PRODUCTION
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_EDITING],
+ 'current_value' => 31,
+ 'updated_value' => 29,
+ ],
+
+ // \PKP\decision\Decision::BACK_FROM_COPYEDITING
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_SUBMISSION, WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 32,
+ 'updated_value' => 30,
+ ],
+
+ // \PKP\decision\Decision::CANCEL_REVIEW_ROUND
+ [
+ 'stage_id' => [WORKFLOW_STAGE_ID_SUBMISSION, WORKFLOW_STAGE_ID_EXTERNAL_REVIEW],
+ 'current_value' => 33,
+ 'updated_value' => 31,
+ ],
+ ];
+ }
+}
diff --git a/dbscripts/xml/upgrade.xml b/dbscripts/xml/upgrade.xml
index 121ed7fc353..fde63e32d2e 100644
--- a/dbscripts/xml/upgrade.xml
+++ b/dbscripts/xml/upgrade.xml
@@ -174,6 +174,7 @@
+