From 68260e89e4f8d223a6acfac87bd81078529b1e32 Mon Sep 17 00:00:00 2001 From: hskwon Date: Wed, 26 Nov 2025 23:16:39 +0900 Subject: [PATCH] =?UTF-8?q?feat(api):=20archived=5Frecords=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=EC=97=90=20batch=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - batch_id (uuid): 일괄 삭제 작업 그룹 식별자 - batch_description (string): 작업 설명 (예: 테넌트 ABC 삭제) - batch_id 인덱스 추가 --- ...batch_fields_to_archived_records_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2025_11_26_230719_add_batch_fields_to_archived_records_table.php 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']); + }); + } +};