From 1735ca8058a9fc9f79f27fba07807dceba6b9aa9 Mon Sep 17 00:00:00 2001 From: Eloy Felix Date: Fri, 17 Jan 2025 21:32:29 +0000 Subject: [PATCH] fix exclude_fields --- cbl_migrator/migrator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cbl_migrator/migrator.py b/cbl_migrator/migrator.py index f70ca8d..8a14a71 100644 --- a/cbl_migrator/migrator.py +++ b/cbl_migrator/migrator.py @@ -237,7 +237,9 @@ def __copy_schema(self): for cons in table.constraints if isinstance(cons, CheckConstraint) ]: - if not any(col in str(cc.sqltext).lower() for col in excluded_fields): + if not any( + col in str(cc.sqltext).lower() for col in excluded_fields + ): cc.sqltext = TextClause(str(cc.sqltext).replace('"', "")) keep_constraints.append(cc) table.constraints = set(keep_constraints)