Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-jovanmanojlovic committed Nov 27, 2024
1 parent b8ebd38 commit fa03458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fivetran/framework/core/model/connector_schema_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit fa03458

Please sign in to comment.