feat: [sales] sales_product_categories에 최저 개발비/구독료 컬럼 추가
- min_development_fee: 최저 개발비 (이 금액 이하 설정 불가) - min_subscription_fee: 최저 구독료 (이 금액 이하 설정 불가)
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user