<?php

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

return new class extends Migration
{
    /**
     * PRC-43: drop 4 dead settings that are defined in SettingsController but
     * never read anywhere in the code base.
     */
    public function up(): void
    {
        DB::table('settings')->whereIn('key', [
            'affiliate_auto_approve',
            'affiliate_recurring_commission_rate',
            'verification_mode',
            'verification_document_types',
        ])->delete();
    }

    public function down(): void
    {
        // No-op: settings are seeded fresh from SettingsSeeder; if the keys are
        // re-introduced by future code, the seeder will create them again.
    }
};
