3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
6 return new class extends Migration
15 Schema::table('page_revisions', function (Blueprint $table) {
16 $table->string('slug');
17 $table->index('slug');
18 $table->string('book_slug');
19 $table->index('book_slug');
24 * Reverse the migrations.
28 public function down()
30 Schema::table('page_revisions', function (Blueprint $table) {
31 $table->dropColumn('slug');
32 $table->dropColumn('book_slug');