This commit is contained in:
Timothy J. Baek 2024-10-11 16:21:56 -07:00
parent 30d3d28b9f
commit 11d7aec61d

View File

@ -24,6 +24,9 @@ def upgrade():
conn = op.get_bind()
inspector = Inspector.from_engine(conn)
# Clean up potential leftover temp table from previous failures
conn.execute(sa.text("DROP TABLE IF EXISTS _alembic_tmp_tag"))
# Check if the 'tag' table exists
tables = inspector.get_table_names()