Compare commits

..

No commits in common. "dec53cf83eb0722fc6c83f5971396dd208a787b3" and "2194204a5829959185595e5f5996f101da402f52" have entirely different histories.

3 changed files with 11 additions and 8 deletions

View file

@ -2,7 +2,14 @@
DB_FILE = db.sqlite3
# Directory containing migration SQL script
MIGRATIONS_DIR = Migrations
MIGRATIONS_DIR = migrations
# Clean target
clean:
rm -f db.sqlite3
rm -f diagram*
rm -f plantuml.jar
rm -f erd.png
# Migration target
migrate:
@ -13,13 +20,6 @@ migrate:
sqlite3 $(DB_FILE) < $$file; \
done
# Clean target
clean:
rm -f db.sqlite3
rm -f diagram*
rm -f plantuml.jar
rm -f erd.png
# Target added primarily for CI/CD to ensure that the database is created before running tests
db.sqlite3:
make migrate
@ -33,6 +33,9 @@ backup:
# Restore with:
# gzip -cd BACKUP_FILE.sql.gz | sqlite3 $(DB_FILE)
# Default target
default: migrate
# Generate ERD
# Requires eralchemy2
.PHONY: erd