Adds downgrade command

This commit is contained in:
Aaron Louie 2020-04-21 19:37:56 -04:00
parent c30e66d91d
commit e65e920a1e
1 changed files with 5 additions and 0 deletions

View File

@ -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