Adds downgrade command
This commit is contained in:
parent
c30e66d91d
commit
e65e920a1e
|
@ -8,6 +8,11 @@ for entry in ./instance/* ; do
|
|||
cat $entry
|
||||
done
|
||||
|
||||
if [ "$DOWNGRADE_DB" = "true" ]; then
|
||||
echo 'Downgrading...'
|
||||
pipenv run flask db downgrade
|
||||
fi
|
||||
|
||||
pipenv run flask db upgrade
|
||||
|
||||
if [ "$RESET_DB" = "true" ]; then
|
||||
|
|
Loading…
Reference in New Issue