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

9 lines
226 B
Bash
Executable File

#!/bin/bash
# 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"