<?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('pegawai_jabatan_histories', function (Blueprint $table) {
            $table->string('nomor_sk')->nullable()->after('sk_file_id');
            $table->enum('status', ['aktif', 'selesai'])->default('selesai')->after('nomor_sk');
        });
    }

    public function down(): void
    {
        Schema::table('pegawai_jabatan_histories', function (Blueprint $table) {
            $table->dropColumn(['nomor_sk', 'status']);
        });
    }
};
