Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/autog/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def connect_two_columns(dbb, table_1_name, table_1_col_name, table_2_name, table
# import ipdb; ipdb.set_trace()
if type_of_col1 == 'foreign_key' and type_of_col2 == 'foreign_key' and columninfo_dict[f'{table_1_name}.{table_1_col_name}'].link_to == columninfo_dict[f'{table_2_name}.{table_2_col_name}'].link_to:
return dbb
if type_of_col1 != type_of_col2:
if type_of_col1 != type_of_col2 and type_of_col2 not in ['primary_key', 'foreign_key']:
return dbb

## two non key types with the same type
Expand Down