From 974485690c4a2d5127f2880cf78847c6916c02ce Mon Sep 17 00:00:00 2001 From: 0livd Date: Thu, 2 Nov 2017 22:38:58 +0100 Subject: [PATCH] Add a database revision makefile recipe (#281) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 6b32e48d..a9afff91 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,10 @@ release: $(DEV_STAMP) build-translations: $(VENV)/bin/pybabel compile -d ihatemoney/translations +create-database-revision: + @read -p "Please enter a message describing this revision: " rev_message; \ + $(PYTHON) -m ihatemoney.manage db migrate -d ihatemoney/migrations -m "$${rev_message}" + build-requirements: $(VIRTUALENV) $(TEMPDIR) $(TEMPDIR)/bin/pip install -U pip