Add a script and make command to detect if there are any migration changes

This commit is contained in:
Imdad Ahad
2017-05-26 16:44:23 +01:00
parent 263adac805
commit a58e724d21
2 changed files with 39 additions and 0 deletions

View File

@@ -303,3 +303,8 @@ cf-rollback: ## Rollbacks the app to the previous release
cf-push:
$(if ${CF_APP},,$(error Must specify CF_APP))
cf push ${CF_APP} -f ${CF_MANIFEST_FILE}
.PHONY: check-if-migrations-to-run
check-if-migrations-to-run:
@echo $(shell python scripts/check_if_new_migration.py)