diff --git a/Makefile b/Makefile index dd7fa7b..0933d54 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/Migrations/0010_users.sql b/migrations/0010_users.sql similarity index 100% rename from Migrations/0010_users.sql rename to migrations/0010_users.sql diff --git a/Migrations/0020_projects.sql b/migrations/0020_projects.sql similarity index 100% rename from Migrations/0020_projects.sql rename to migrations/0020_projects.sql