Skip to content

Commit

Permalink
Merge pull request #275 from leemurus/fix/patch-alembic
Browse files Browse the repository at this point in the history
Fixed adding a duplicate column to the alembic table
  • Loading branch information
xzkostyan committed Dec 8, 2023
2 parents 5d25149 + 01ce534 commit c34be61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse_sqlalchemy/alembic/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def patch_alembic_version(context, **kwargs):
dt = Column('dt', types.DateTime, server_default=func.now())
version_num = Column('version_num', types.String, primary_key=True)
version.append_column(dt)
version.append_column(version_num)
version.append_column(version_num, replace_existing=True)

if 'cluster' in kwargs:
cluster = kwargs['cluster']
Expand Down

0 comments on commit c34be61

Please sign in to comment.