database/migrations/2019_01_23_064646_add_removed_flag.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRemovedFlag extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('screenshots', function (Blueprint $table) {
$table->boolean('is_removed')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('screenshots', function (Blueprint $table) {
$table->dropColumn('is_removed');
});
}
}