<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

// PRC-810 — Config option fiyatında da dönem-ekseni adaptive (monthly → ×ay).
return new class extends Migration
{
    public function up(): void
    {
        Schema::table('product_config_options', function (Blueprint $table) {
            $table->boolean('adaptive_term_pricing')->default(false)->after('is_required');
        });
    }

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