<?php

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

/**
 * PRC-372 / [7/19] — Drop `enable_qr_code` ghost setting.
 *
 * The setting was registered + validated + UI'd but no code ever
 * read it. Bank-transfer QR-code rendering is a follow-up feature
 * (would need a QR package like endroid/qr-code + payment view changes).
 * Drop the dead row now so the UI/settings inventory stays clean;
 * the real QR feature gets its own ticket when prioritised.
 */
return new class extends Migration
{
    public function up(): void
    {
        DB::table('settings')
            ->where('key', 'enable_qr_code')
            ->delete();
    }

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