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:
parent
576721345b
commit
42d857d261
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue