From fa03458757e088dec6e3ec2a48c2c368f316b228 Mon Sep 17 00:00:00 2001 From: "jovan.manojlovic" Date: Wed, 27 Nov 2024 16:18:56 +0100 Subject: [PATCH] Fix typo --- fivetran/framework/core/model/connector_schema_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fivetran/framework/core/model/connector_schema_config.go b/fivetran/framework/core/model/connector_schema_config.go index fe1f9eed..a5b33684 100644 --- a/fivetran/framework/core/model/connector_schema_config.go +++ b/fivetran/framework/core/model/connector_schema_config.go @@ -322,7 +322,7 @@ func (d *ConnectorSchemaResourceModel) getLegacySchemaItems(schemas []interface{ "name": types.StringType, "enabled": types.BoolType, "hashed": types.BoolType, - "is_primary_ket": types.BoolType, + "is_primary_key": types.BoolType, } tableAttrTypes := map[string]attr.Type{ @@ -381,7 +381,7 @@ func (d *ConnectorSchemaResourceModel) getLegacySchemaItems(schemas []interface{ } else { columnElements["hashed"] = types.BoolNull() } - if _, ok := localColumn["is_primary_key"]; ok { + if _, ok := localColumn["is_primary_key"]; ok && columnMap["is_primary_key"] != nil { columnElements["is_primary_key"] = types.BoolValue(helpers.StrToBool(columnMap["is_primary_key"].(string))) } else { columnElements["is_primary_key"] = types.BoolNull()