Skip to content

Commit f283bd2

Browse files
committed
Fix duplicate names for Salesforce custom fields
1 parent 30a3d12 commit f283bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target_postgres/db_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def column_type(schema_property):
3030

3131

3232
def inflect_column_name(name):
33-
return inflection.underscore(name)
33+
return inflection.underscore(re.sub(r"([A-Z]+)_([A-Z][a-z])", r'\1__\2', name))
3434

3535

3636
def safe_column_name(name):

0 commit comments

Comments
 (0)