2024_06_14_122719_alter_table_meet_checks.php
1 <?php 2 3 use App\Models\MeetCheckTemplate; 4 use Illuminate\Database\Migrations\Migration; 5 use Illuminate\Database\Schema\Blueprint; 6 use Illuminate\Support\Facades\Schema; 7 8 return new class extends Migration 9 { 10 /** 11 * Run the migrations. 12 * 13 * @return void 14 */ 15 public function up() 16 { 17 Schema::table('meet_checks', function (Blueprint $table) { 18 $table->foreignIdFor(MeetCheckTemplate::class, 'meet_check_template_id')->nullable()->change(); 19 }); 20 } 21 22 /** 23 * Reverse the migrations. 24 * 25 * @return void 26 */ 27 public function down() 28 { 29 } 30 };