Skip to content

Commit

Permalink
Fixed adding a duplicate column to the alembic table
Browse files Browse the repository at this point in the history
  • Loading branch information
leemurus committed Nov 11, 2023
1 parent a5390b9 commit 01ce534
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 01ce534

Please sign in to comment.