Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix(Makefile): created empty database if file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Jul 29, 2024
1 parent 2c473dd commit 2097893
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ test-server: protobuf
all: bot-prod sever tui test

update-database:
ifeq (,$(wildcard $(DB_PATH)))
touch $(DB_PATH)
endif
migrate -database sqlite3://$(DB_PATH) -path db/migrations up

clean: cleanProto
Expand Down

0 comments on commit 2097893

Please sign in to comment.