contentdb/utils/run_migrations.sh
2023-12-15 23:49:54 +00:00

10 lines
210 B
Bash
Executable File

#!/bin/bash
# Run all pending migrations
set -e
. "${BASH_SOURCE%/*}/common.sh"
./utils/reload.sh
docker exec "$(container app)" sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db upgrade"