feat: [sales] sales_product_categories에 최저 개발비/구독료 컬럼 추가

- min_development_fee: 최저 개발비 (이 금액 이하 설정 불가)
- min_subscription_fee: 최저 구독료 (이 금액 이하 설정 불가)
This commit is contained in:
김보곤
2026-03-14 11:52:54 +09:00
parent c942788119
commit adc07b7343

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
protected $connection = 'codebridge';
/**
* Run the migrations.
*/
public function up(): void
{
Schema::connection('codebridge')->table('sales_product_categories', function (Blueprint $table) {
$table->decimal('min_development_fee', 15, 2)->default(0)->after('base_storage')
->comment('최저 개발비 (이 금액 이하로 설정 불가)');
$table->decimal('min_subscription_fee', 15, 2)->default(0)->after('min_development_fee')
->comment('최저 구독료 (이 금액 이하로 설정 불가)');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::connection('codebridge')->table('sales_product_categories', function (Blueprint $table) {
$table->dropColumn(['min_development_fee', 'min_subscription_fee']);
});
}
};