3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
16 Schema::table('events', function(Blueprint $table) {
17 $table->foreignId('description_id')->nullable()->default(null)->references('id')->on('techniques')->constrained();
22 * Reverse the migrations.
26 public function down()
28 Schema::table('events', function(Blueprint $table) {
29 $table->dropForeign(['description_id']);
30 $table->dropColumn('description_id');