first commit
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2026-02-28 10:47:42 +03:00
commit a763e9c2e0
27 changed files with 556 additions and 0 deletions

17
makefile Normal file
View 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