From 32392ef4de1c4fed209bda368d0f09bb5873c568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sat, 31 Jan 2026 20:44:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:sales=5Fcontract=5Fproducts.tenant=5Fid=20n?= =?UTF-8?q?ullable=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 가망고객(prospect) 모드에서 계약상품 저장 지원 - tenant_id가 없어도 management_id로 연결 가능 Co-Authored-By: Claude Opus 4.5 --- ...s_contract_products_tenant_id_nullable.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2026_01_31_204350_alter_sales_contract_products_tenant_id_nullable.php diff --git a/database/migrations/2026_01_31_204350_alter_sales_contract_products_tenant_id_nullable.php b/database/migrations/2026_01_31_204350_alter_sales_contract_products_tenant_id_nullable.php new file mode 100644 index 0000000..3d3af70 --- /dev/null +++ b/database/migrations/2026_01_31_204350_alter_sales_contract_products_tenant_id_nullable.php @@ -0,0 +1,29 @@ +unsignedBigInteger('tenant_id')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('sales_contract_products', function (Blueprint $table) { + $table->unsignedBigInteger('tenant_id')->nullable(false)->change(); + }); + } +};