VENV=source ./.venv/bin/activate;
ALEMBIC=alembic -c ./server/database/alembic/alembic.ini

.PHONY: test run migrate_head migrate_down migrate_history migrate_current migrate
test:
	$(VENV) pytest -c ./server/testing/pytest.ini ./server/testing/tests/
run:
	$(VENV) python run.py
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