This commit is contained in:
17
makefile
Normal file
17
makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
VENV=source ./.venv/bin/activate;
|
||||
ALEMBIC=alembic -c ./server/backend/database/alembic/alembic.ini
|
||||
.PHONY: run run_debug migrate_head migrate_down migrate_history migrate_current migrate
|
||||
run:
|
||||
$(VENV) python run.py
|
||||
run_debug:
|
||||
$(VENV) python run.py --mode debug
|
||||
migrate_head:
|
||||
$(VENV) $(ALEMBIC) upgrade head
|
||||
migrate_down:
|
||||
$(VENV) $(ALEMBIC) downgrade -1
|
||||
migrate_history:
|
||||
$(VENV) $(ALEMBIC) history
|
||||
migrate_current:
|
||||
$(VENV) $(ALEMBIC) current
|
||||
migrate:
|
||||
$(VENV) $(ALEMBIC) revision --autogenerate
|
||||
Reference in New Issue
Block a user