File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
schema_automator/importers Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ def convert(
6868 # Handle primary key and unique constraints
6969 primary_key_columns = [col for col in table .columns if col .pk ]
7070 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
7271
7372 # Process columns
7473 for column in table .columns :
@@ -85,11 +84,6 @@ def convert(
8584 class_def .slots .append (slot_name )
8685 processed_slots .add (slot_name )
8786
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-
9387 # Handle single unique column as primary key if no explicit primary key exists
9488 if not primary_key_columns and len (unique_columns ) == 1 :
9589 unique_column = unique_columns [0 ]
You can’t perform that action at this time.
0 commit comments