Added new make migration command (#2201)

* Added new make migration command

* Addressed feedback
This commit is contained in:
Samuel Hawksby-Robinson 2021-04-15 10:44:26 +01:00 committed by GitHub
parent 6d7028a8d9
commit 050dca8336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -367,3 +367,9 @@ 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: DEFAULT_MIGRATION_PATH := appdatabase/migrations/sql/
migration: UNIX_TIMESTAMP := $(shell date +%s)
migration:
touch $(DEFAULT_MIGRATION_PATH)$(UNIX_TIMESTAMP)_$(DESC).up.sql