From 684ed3f130a978d0defb70b51b0d583bf41724ef Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 4 May 2024 10:51:45 +0200 Subject: [PATCH 1/2] Ifnore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index cdaa90a..151a90e 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ krusty.sqlite3 *.db *.tar.gz *.minisig +*.jpg +*.pdf From 8dc532c6cc3c90668809f48320900dc26f0b9687 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 4 May 2024 10:52:12 +0200 Subject: [PATCH 2/2] 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