mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Add a database revision makefile recipe (#281)
This commit is contained in:
parent
5c645a5b0b
commit
974485690c
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -40,6 +40,10 @@ release: $(DEV_STAMP)
|
||||||
build-translations:
|
build-translations:
|
||||||
$(VENV)/bin/pybabel compile -d ihatemoney/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:
|
build-requirements:
|
||||||
$(VIRTUALENV) $(TEMPDIR)
|
$(VIRTUALENV) $(TEMPDIR)
|
||||||
$(TEMPDIR)/bin/pip install -U pip
|
$(TEMPDIR)/bin/pip install -U pip
|
||||||
|
|
Loading…
Reference in a new issue