From 9d09cb3e9ac80b930b6dfa0bac70aeee559d9466 Mon Sep 17 00:00:00 2001 From: Samuel Hawksby-Robinson Date: Fri, 16 Apr 2021 14:14:21 +0100 Subject: [PATCH] Added custom path and default protocol path (#2204) * Added custom path and default protocol path * Addressed feedback --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 62c6a0d27..fb9f26067 100644 --- a/Makefile +++ b/Makefile @@ -368,8 +368,10 @@ clean-mailserver-systemd: ##@Easy Clean your systemd service for running a mails clean-mailserver-docker: ##@Easy Clean your Docker container running a mailserver @cd _assets/compose/mailserver && $(MAKE) clean -## TODO(samyoul) option to set and/or overwrite migration path -migration: DEFAULT_MIGRATION_PATH := appdatabase/migrations/sql/ -migration: UNIX_TIMESTAMP := $(shell date +%s) +migration: PATH := appdatabase/migrations/sql migration: - touch $(DEFAULT_MIGRATION_PATH)$(UNIX_TIMESTAMP)_$(DESC).up.sql + touch $(PATH)/$(shell date +%s)_$(D).up.sql + +migration-protocol: DEFAULT_PROTOCOL_PATH := protocol/migrations/sqlite +migration-protocol: + touch $(DEFAULT_PROTOCOL_PATH)/$(shell date +%s)_$(D).up.sql