Skip to content

Commit

Permalink
fix/bug-_reflect_table-to-much-arg (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
9bany committed Oct 8, 2023
1 parent 1b10fe0 commit 16ff72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clickhouse_sqlalchemy/alembic/comparators.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def compare_mat_view(autogen_context, upgrade_ops, schemas):
)
else:
table = Table(name, existing_metadata)
_reflect_table(inspector, table, None)
_reflect_table(inspector, table)

drop = operations.DropMatViewOp(
name, params.as_select, params.engine_full, *table.columns
Expand All @@ -132,7 +132,7 @@ def compare_mat_view(autogen_context, upgrade_ops, schemas):
inner_name = '.inner.' + name

conn_table = Table(inner_name, existing_metadata)
_reflect_table(inspector, conn_table, None)
_reflect_table(inspector, conn_table)

if not autogen_context.run_object_filters(
view, name, 'mat_view', False, conn_table
Expand Down

0 comments on commit 16ff72f

Please sign in to comment.