meta: Add database makefile recipes

Allows for generation of migrations and automatic upgrading of the
database with `make make_migrations` and `make run_migrations`
This commit is contained in:
Cara Salter 2022-12-06 09:07:41 -05:00
parent 576721345b
commit 42d857d261
No known key found for this signature in database
GPG key ID: 90C66610C82B29CA

View file

@ -22,6 +22,12 @@ init_env:
upgrade_env:
source .venv/bin/activate && pip3 install --upgrade -r requirements.txt txt
make_migrations:
source .venv/bin/activate && flask db migrate
run_migrations:
source .venv/bin/activate && flask db upgrade
daemon:
@echo "--- STARTING UWSGI DAEMON ---"
@echo ""