From 9cc73f468882d1a3940dfcf046fb39eb8bebd1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 2 Feb 2026 09:53:35 +0900 Subject: [PATCH] =?UTF-8?q?fix:sales=5Fcontract=5Fproducts.tenant=5Fid=20n?= =?UTF-8?q?ullable=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 가망고객 단계에서는 아직 테넌트가 생성되지 않으므로 tenant_id가 null일 수 있음 Co-Authored-By: Claude Opus 4.5 --- ...id_nullable_in_sales_contract_products.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2026_02_02_095500_make_tenant_id_nullable_in_sales_contract_products.php diff --git a/database/migrations/2026_02_02_095500_make_tenant_id_nullable_in_sales_contract_products.php b/database/migrations/2026_02_02_095500_make_tenant_id_nullable_in_sales_contract_products.php new file mode 100644 index 0000000..cd1c1cc --- /dev/null +++ b/database/migrations/2026_02_02_095500_make_tenant_id_nullable_in_sales_contract_products.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(); + }); + } +};