Skip to content

Commit

Permalink
#10359 add migration for the date_editor_confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafsa-Naeem committed Oct 4, 2024
1 parent c3eca43 commit dec9983
Showing 1 changed file with 42 additions and 0 deletions.
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');
});
}
}

0 comments on commit dec9983

Please sign in to comment.