Added custom path and default protocol path (#2204)

* Added custom path and default protocol path

* Addressed feedback
This commit is contained in:
Samuel Hawksby-Robinson 2021-04-16 14:14:21 +01:00 committed by GitHub
parent ddc48c7cf4
commit 9d09cb3e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -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 clean-mailserver-docker: ##@Easy Clean your Docker container running a mailserver
@cd _assets/compose/mailserver && $(MAKE) clean @cd _assets/compose/mailserver && $(MAKE) clean
## TODO(samyoul) option to set and/or overwrite migration path migration: PATH := appdatabase/migrations/sql
migration: DEFAULT_MIGRATION_PATH := appdatabase/migrations/sql/
migration: UNIX_TIMESTAMP := $(shell date +%s)
migration: 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