From 0a3197574048525e1cf93394526d76e5c0679783 Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Fri, 9 Sep 2022 12:45:55 +0600 Subject: [PATCH] pkp/pkp-lib#4789 migration update --- classes/migration/install/ReviewsMigration.php | 1 + .../upgrade/v3_4_0/I4789_AddReviewerReconsiderationColumns.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/migration/install/ReviewsMigration.php b/classes/migration/install/ReviewsMigration.php index e1b07440a15..4064342f753 100644 --- a/classes/migration/install/ReviewsMigration.php +++ b/classes/migration/install/ReviewsMigration.php @@ -77,6 +77,7 @@ public function up(): void $table->foreign('review_form_id')->references('review_form_id')->on('review_forms'); $table->smallInteger('unconsidered')->nullable(); + $table->smallInteger('reconsider_requested')->default(0); // Normally reviewer can't be assigned twice on the same review round. // HOWEVER, if two reviewer user accounts are subsequently merged, both will keep diff --git a/classes/migration/upgrade/v3_4_0/I4789_AddReviewerReconsiderationColumns.php b/classes/migration/upgrade/v3_4_0/I4789_AddReviewerReconsiderationColumns.php index 6025f9049bc..e9f367d29f0 100644 --- a/classes/migration/upgrade/v3_4_0/I4789_AddReviewerReconsiderationColumns.php +++ b/classes/migration/upgrade/v3_4_0/I4789_AddReviewerReconsiderationColumns.php @@ -24,7 +24,7 @@ class I4789_AddReviewerReconsiderationColumns extends Migration public function up(): void { Schema::table('review_assignments', function (Blueprint $table) { - $table->boolean('reconsider_requested')->default(false); + $table->smallInteger('reconsider_requested')->default(0); }); }