Rename fix restructure
This commit is contained in:
parent
db687b2600
commit
dec53cf83e
1 changed files with 8 additions and 11 deletions
19
Makefile
19
Makefile
|
@ -2,14 +2,7 @@
|
||||||
DB_FILE = db.sqlite3
|
DB_FILE = db.sqlite3
|
||||||
|
|
||||||
# Directory containing migration SQL script
|
# 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
|
# Migration target
|
||||||
migrate:
|
migrate:
|
||||||
|
@ -20,6 +13,13 @@ migrate:
|
||||||
sqlite3 $(DB_FILE) < $$file; \
|
sqlite3 $(DB_FILE) < $$file; \
|
||||||
done
|
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
|
# Target added primarily for CI/CD to ensure that the database is created before running tests
|
||||||
db.sqlite3:
|
db.sqlite3:
|
||||||
make migrate
|
make migrate
|
||||||
|
@ -33,9 +33,6 @@ backup:
|
||||||
# Restore with:
|
# Restore with:
|
||||||
# gzip -cd BACKUP_FILE.sql.gz | sqlite3 $(DB_FILE)
|
# gzip -cd BACKUP_FILE.sql.gz | sqlite3 $(DB_FILE)
|
||||||
|
|
||||||
# Default target
|
|
||||||
default: migrate
|
|
||||||
|
|
||||||
# Generate ERD
|
# Generate ERD
|
||||||
# Requires eralchemy2
|
# Requires eralchemy2
|
||||||
.PHONY: erd
|
.PHONY: erd
|
||||||
|
|
Loading…
Reference in a new issue