Skip to content

Commit

Permalink
fix exclude_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
eloyfelix committed Jan 17, 2025
1 parent 16a069a commit 1735ca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cbl_migrator/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1735ca8

Please sign in to comment.