Skip to content

Commit 4ac08e7

Browse files
committed
🦺 enhance foreign key exclusion logic in CLI
1 parent e633770 commit 4ac08e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mysql_to_sqlite3/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ def cli(
212212
limit_rows=limit_rows,
213213
collation=collation,
214214
prefix_indices=prefix_indices,
215-
without_foreign_keys=without_foreign_keys or (mysql_tables is not None and len(mysql_tables) > 0),
215+
without_foreign_keys=without_foreign_keys
216+
or (
217+
(mysql_tables is not None and len(mysql_tables) > 0)
218+
or (exclude_mysql_tables is not None and len(exclude_mysql_tables) > 0)
219+
),
216220
without_tables=without_tables,
217221
without_data=without_data,
218222
mysql_host=mysql_host,

0 commit comments

Comments
 (0)