File tree 1 file changed +0
-6
lines changed
schema_automator/importers
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ def convert(
68
68
# Handle primary key and unique constraints
69
69
primary_key_columns = [col for col in table .columns if col .pk ]
70
70
unique_columns = [col for col in table .columns if col .unique and not col .pk ]
71
- # multi_column_unique_keys = table.indexes # Assuming `indexes` captures multi-column unique keys
72
71
73
72
# Process columns
74
73
for column in table .columns :
@@ -85,11 +84,6 @@ def convert(
85
84
class_def .slots .append (slot_name )
86
85
processed_slots .add (slot_name )
87
86
88
- # # Add multi-column unique keys
89
- # for index in multi_column_unique_keys:
90
- # if index.unique:
91
- # class_def.unique_keys.append([col.name for col in index.columns])
92
-
93
87
# Handle single unique column as primary key if no explicit primary key exists
94
88
if not primary_key_columns and len (unique_columns ) == 1 :
95
89
unique_column = unique_columns [0 ]
You can’t perform that action at this time.
0 commit comments