<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('station_licenses', function (Blueprint $table) {
            $table->date('ministry_license_start_date')->nullable()->after('ministry_license_number');
            $table->date('ministry_license_end_date')->nullable()->after('ministry_license_start_date');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('station_licenses', function (Blueprint $table) {
            $table->dropColumn(['ministry_license_start_date', 'ministry_license_end_date']);
        });
    }
};
