From 5cbdac7777fbdd6005fcdf2e2437a0aaaaadec06 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 16 Feb 2023 10:30:12 +0530 Subject: [PATCH] fix: save foreign key name with relation Signed-off-by: Pranav C --- packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts b/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts index c40b046095..bc331105ba 100644 --- a/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts +++ b/packages/nocodb/src/lib/meta/api/helpers/columnHelpers.ts @@ -51,6 +51,7 @@ export async function createHmAndBtColumn( virtual, system: isSystemCol, fk_col_name: fkColName, + fk_index_name: fkColName, }); } // save hm column @@ -70,6 +71,7 @@ export async function createHmAndBtColumn( virtual, system: isSystemCol, fk_col_name: fkColName, + fk_index_name: fkColName, }); } }