Skip to content

Commit

Permalink
DB:config the name of superset alembic version table
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Apr 15, 2024
1 parent dc5443d commit 9ecc5b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dags/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def run_migrations_offline() -> None:
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
version_table="superset_alembic_version",
)

with context.begin_transaction():
Expand All @@ -62,7 +63,11 @@ def run_migrations_online() -> None:
)

with connectable.connect() as connection:
context.configure(connection=connection, target_metadata=target_metadata)
context.configure(
connection=connection,
target_metadata=target_metadata,
version_table="superset_airflow_alembic_version",
)

with context.begin_transaction():
context.run_migrations()
Expand Down
2 changes: 1 addition & 1 deletion dags/migrations/versions/64ac526a078b_my_db_revision.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""My DB Revision
Revision ID: 64ac526a078b
Revises: 4438ef06e0c7
Revises:
Create Date: 2024-04-11 16:06:50.691527
"""
Expand Down

0 comments on commit 9ecc5b8

Please sign in to comment.