Skip to content

Commit

Permalink
fix: add cascade drop on alembic table
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Aug 11, 2024
1 parent 65c721e commit b110cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/db/db_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def hard_reset_database():

# Drop the alembic_version table
with db.engine.connect() as connection:
connection.execute(text("DROP TABLE IF EXISTS alembic_version"))
connection.execute(text("DROP TABLE IF EXISTS alembic_version CASCADE"))
logger.debug("Alembic table dropped")

# Recreate all tables
Expand Down

0 comments on commit b110cac

Please sign in to comment.