Run the db migrations on container start unless we're running against Sqlite.
This commit is contained in:
parent
553ef36e9b
commit
f049f738da
3 changed files with 28 additions and 11 deletions
5
conf/init/runmigration.sh
Executable file
5
conf/init/runmigration.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#! /bin/bash
|
||||
set -e
|
||||
|
||||
# Run the database migration
|
||||
PYTHONPATH=. venv/bin/alembic upgrade head
|
Reference in a new issue