3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
12 public function up(): void
14 Schema::table('page_revisions', function (Blueprint $table) {
15 $table->string('slug');
16 $table->index('slug');
17 $table->string('book_slug');
18 $table->index('book_slug');
23 * Reverse the migrations.
25 public function down(): void
27 Schema::table('page_revisions', function (Blueprint $table) {
28 $table->dropColumn('slug');
29 $table->dropColumn('book_slug');