<?php

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

/**
 * PRC-368 / [3/19] — Drop `show_gateway_fees_separately` setting row.
 *
 * Toggle removed: gateway fees always render as their own invoice line
 * when > 0. Mirrors PRC-367 (setup fees) — both fee types treated the
 * same way now.
 */
return new class extends Migration
{
    public function up(): void
    {
        DB::table('settings')
            ->where('key', 'show_gateway_fees_separately')
            ->delete();
    }

    public function down(): void
    {
        // Permanent removal — see PRC-365 cleanup plan. Not restorative.
    }
};
