From 050dca833679fdda4c6cb3f07b48f50113822ca4 Mon Sep 17 00:00:00 2001 From: Samuel Hawksby-Robinson Date: Thu, 15 Apr 2021 10:44:26 +0100 Subject: [PATCH] Added new make migration command (#2201) * Added new make migration command * Addressed feedback --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 4bafa4f0d..62c6a0d27 100644 --- a/Makefile +++ b/Makefile @@ -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 @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