<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddViewsAndIsApprovedToAppVideosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('app_videos', function (Blueprint $table) {
$table->integer('views')->after('is_featured');
$table->char('is_approved', 1)->after('is_featured');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('app_videos', function (Blueprint $table) {
$table->dropColumn('views');
$table->dropColumn('is_approved');
});
}
}