From dec53cf83eb0722fc6c83f5971396dd208a787b3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 17 Mar 2024 16:05:14 +0100 Subject: [PATCH] Rename fix restructure --- Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 0933d54..dd7fa7b 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,7 @@ DB_FILE = db.sqlite3 # Directory containing migration SQL script -MIGRATIONS_DIR = migrations - -# Clean target -clean: - rm -f db.sqlite3 - rm -f diagram* - rm -f plantuml.jar - rm -f erd.png +MIGRATIONS_DIR = Migrations # Migration target migrate: @@ -20,6 +13,13 @@ 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,9 +33,6 @@ backup: # Restore with: # gzip -cd BACKUP_FILE.sql.gz | sqlite3 $(DB_FILE) -# Default target -default: migrate - # Generate ERD # Requires eralchemy2 .PHONY: erd