Skip to content

Commit

Permalink
swap commands
Browse files Browse the repository at this point in the history
  • Loading branch information
francesconazzaro committed Jul 26, 2024
1 parent 9f2669a commit 1b3b72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cads_broker/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,6 @@ def init_database(connection_string: str, force: bool = False) -> sa.engine.Engi
BaseModel.metadata.create_all(engine)
else:
# update db structure
cacholote.init_database(connection_string, force)
alembic.command.upgrade(alembic_cfg, "head")
cacholote.init_database(connection_string, force)
return engine

0 comments on commit 1b3b72a

Please sign in to comment.