contentdb/utils/downgrade_migration.sh

9 lines
226 B
Bash
Raw Normal View History

2023-12-16 00:49:54 +01:00
#!/bin/bash
2020-12-09 20:33:31 +01:00
# Create a database migration, and copy it back to the host.
set -e
. "${BASH_SOURCE%/*}/common.sh"
docker exec "$(container app)" sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db downgrade"