-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#10359 add migration for the date_editor_confirmed
- Loading branch information
1 parent
c3eca43
commit dec9983
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
classes/migration/upgrade/v3_5_0/I10359_DateEditorConfirmedToReviewAssignments.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,42 @@ | ||
<?php | ||
|
||
/** | ||
* @file classes/migration/upgrade/v3_5_0/I10359_DateEditorConfirmedToReviewAssignments.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 I10359_DateEditorConfirmedToReviewAssignments | ||
* | ||
* @brief Add date_editor_confirmed column to the review_assignments table. | ||
*/ | ||
|
||
namespace PKP\migration\upgrade\v3_5_0; | ||
|
||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
use PKP\migration\Migration; | ||
|
||
class I10359_DateEditorConfirmedToReviewAssignments extends Migration | ||
{ | ||
/** | ||
* Run the migration. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::table('review_assignments', function (Blueprint $table) { | ||
$table->dateTime('date_editor_confirmed')->after('date_completed')->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the downgrades | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::table('review_assignments', function (Blueprint $table) { | ||
$table->dropColumn('date_editor_confirmed'); | ||
}); | ||
} | ||
} |