feat:법인카드 결제 항목(items) JSON 컬럼 추가 마이그레이션

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-20 10:32:55 +09:00
parent 7472264364
commit e3d5303167

View File

@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('corporate_card_prepayments', function (Blueprint $table) {
$table->json('items')->nullable()->comment('결제 항목 [{date, amount, description}]')->after('memo');
});
}
public function down(): void
{
Schema::table('corporate_card_prepayments', function (Blueprint $table) {
$table->dropColumn('items');
});
}
};