<?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('subledg_master', function (Blueprint $table) {
            // Add SL_Type column after SL_Status or any appropriate position
            $table->enum('SL_Type', ['1', '2'])->nullable()->after('SL_Status')
                  ->comment('1=Vend, 2=Bnk_Fd');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('subledg_master', function (Blueprint $table) {
            $table->dropColumn('SL_Type');
        });
    }
};
