From 8dc532c6cc3c90668809f48320900dc26f0b9687 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 4 May 2024 10:52:12 +0200 Subject: [PATCH] Makefile target for generating ERD diagram with eralchemy --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index dc22d2c..d74125e 100644 --- a/makefile +++ b/makefile @@ -25,4 +25,8 @@ release: scp krusty-imbus_$(GITHASH).tar.gz server:/public/krusty/krusty-imbus_$(GITHASH).tar.gz scp krusty-imbus_$(GITHASH).tar.gz.minisig server:/public/krusty/krusty-imbus_$(GITHASH).tar.gz.minisig -.PHONY: run clean test build dbdump migrate release +# Generate ERD. Requires eralchemy2 (pip install eralchemy2) +erd: + eralchemy2 -i sqlite:///app/krusty.db -o erd.jpg + +.PHONY: run clean test build dbdump migrate release erd