contentdb/utils/run_migrations.sh

10 lines
210 B
Bash
Raw Normal View History

2023-12-16 00:49:54 +01:00
#!/bin/bash
2020-01-19 00:20:34 +01:00
# 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"