diff --git a/database/migrations/2025_11_26_230719_add_batch_fields_to_archived_records_table.php b/database/migrations/2025_11_26_230719_add_batch_fields_to_archived_records_table.php new file mode 100644 index 0000000..dd7b751 --- /dev/null +++ b/database/migrations/2025_11_26_230719_add_batch_fields_to_archived_records_table.php @@ -0,0 +1,32 @@ +uuid('batch_id')->nullable()->after('id')->comment('일괄 작업 ID'); + $table->string('batch_description')->nullable()->after('batch_id')->comment('작업 요약 (예: 테넌트 ABC 삭제)'); + + $table->index('batch_id'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('archived_records', function (Blueprint $table) { + $table->dropIndex(['batch_id']); + $table->dropColumn(['batch_id', 'batch_description']); + }); + } +};