<?php

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

return new class extends Migration
{
    public function up()
    {
        Schema::table('prodi', function (Blueprint $table) {
            // Ubah kolom jenjang dari enum menjadi varchar(50)
            $table->string('jenjang', 50)->change();
        });
    }

    public function down()
    {
        Schema::table('prodi', function (Blueprint $table) {
            // Kembalikan ke enum jika perlu rollback
            $table->enum('jenjang', ['D3', 'D4', 'S1', 'S2'])->change();
        });
    }
};
