<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('registros_salidas', function (Blueprint $table) {
            // Quitamos fecha_fin
            $table->dropColumn('fecha_fin');
        });
    }

    public function down(): void
    {
        Schema::table('registros_salidas', function (Blueprint $table) {
            $table->dateTime('fecha_fin')->nullable();
        });
    }
};

