3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
6 return new class extends Migration
15 Schema::table('pages', function (Blueprint $table) {
16 $table->boolean('draft')->default(false);
17 $table->index('draft');
22 * Reverse the migrations.
26 public function down()
28 Schema::table('pages', function (Blueprint $table) {
29 $table->dropColumn('draft');