public function up() { Schema::table('deployments', function (Blueprint $table) { $table->boolean('is_webhook')->default(false); }); DB::table('deployments')->whereRaw('user_id IS NULL')->update(['is_webhook' => true]); }