Skip to content

Commit

Permalink
Add Top Video and Last Notice fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPeter committed Feb 29, 2020
1 parent 66ad6c1 commit 3e54eb3
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddTopVideoAndLastNoticeToVideosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('videos', function (Blueprint $table) {
$table->boolean('top_video')->default(false)->after('review_status');
$table->dateTime('last_notification')->nullable()->after('top_video');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('videos', function (Blueprint $table) {
$table->dropColumn(['top_video', 'last_notification']);
});
}
}

0 comments on commit 3e54eb3

Please sign in to comment.