Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit c8a4d25

Browse files
committed
Fix: Set up Alembic to allow migrations by stamping the db on creation.
1 parent 72c90f7 commit c8a4d25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/docker_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ def _build_phase_2_core(
10011001
xqt("rm -f $RUNESTONE_PATH/databases/*")
10021002
print("Populating database...")
10031003
xqt("rsmanage initdb --force", cwd=env.WEB2PY_PATH)
1004+
xqt("alembic stamp head", cwd=env.BOOK_SERVER_PATH)
10041005
else:
10051006
print("Database already populated.")
10061007
# TODO: any checking to see if the db is healthy? Perhaps run Alembic autogenerate to see if it wants to do anything?

0 commit comments

Comments
 (0)