<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    public function up(): void
    {
        DB::statement("ALTER TABLE `cashback_ledgers` MODIFY `source` ENUM('reward','purchase','refund','admin_adjust','expiry') NOT NULL");
    }

    public function down(): void
    {
        DB::statement("ALTER TABLE `cashback_ledgers` MODIFY `source` ENUM('reward','purchase','refund','admin_adjust') NOT NULL");
    }
};

