<?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('client_packages', function (Blueprint $table) {
            $table->string('razorpay_plan_id', 255)
                ->nullable()
                ->after('psp_reference');
        });
    }

    public function down(): void
    {
        Schema::table('client_packages', function (Blueprint $table) {
            $table->dropColumn('razorpay_plan_id');
        });
    }
};
