diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-14 21:24:46 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-14 21:24:46 +0200 |
commit | 9faab93c97b94e2dc2db11d3cbd9c0a5535cef52 (patch) | |
tree | 46790ab96aa34ec81cd1216eff4518197b35cb9d /Makefile.example | |
parent | 11185161a0ec5c15a1852fd7bc387b82573b577a (diff) | |
download | Ishtar-9faab93c97b94e2dc2db11d3cbd9c0a5535cef52.tar.bz2 Ishtar-9faab93c97b94e2dc2db11d3cbd9c0a5535cef52.zip |
New migration management
Diffstat (limited to 'Makefile.example')
-rw-r--r-- | Makefile.example | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/Makefile.example b/Makefile.example index abbaf9202..35b26afc4 100644 --- a/Makefile.example +++ b/Makefile.example @@ -66,10 +66,6 @@ pylint: done fresh_syncdb: - cd $(project); $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null - cd $(project); $(PYTHON) ./manage.py migrate ishtar_common 2> /dev/null > /dev/null - if [[ '$(apps)' == *archaeological_files* ]]; then cd $(project); $(PYTHON) ./manage.py migrate archaeological_files 2> /dev/null > /dev/null; fi - $(PYTHON) ./manage.py migrate archaeological_operations 2> /dev/null > /dev/null cd $(project); $(PYTHON) ./manage.py migrate 2> /dev/null > /dev/null echo "* load default data" # data migrations have created some default data - return to a clean state @@ -103,7 +99,6 @@ fresh_syncdb: rm /tmp/site.json syncdb: - cd $(project); $(PYTHON) manage.py syncdb --noinput cd $(project); $(PYTHON) manage.py migrate shell: @@ -128,18 +123,11 @@ compilemessages: collectstatic: cd $(project);$(PYTHON) manage.py collectstatic --noinput -schemamigrations: - cd $(project);\ - for APP in $(apps); do \ - echo "* schemamigration for "$$APP; \ - $(PYTHON) manage.py schemamigration --auto $$APP; \ - done - -schemamigrations_initial: +migrations: cd $(project);\ for APP in $(apps); do \ - echo "* schemamigration for "$$APP; \ - $(PYTHON) manage.py schemamigration --initial $$APP; \ + echo "* makemigrations for "$$APP; \ + $(PYTHON) ./manage.py makemigrations $$APP; \ done generate_doc: |