summaryrefslogtreecommitdiff
path: root/Makefile.example
diff options
context:
space:
mode:
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
commit9faab93c97b94e2dc2db11d3cbd9c0a5535cef52 (patch)
tree46790ab96aa34ec81cd1216eff4518197b35cb9d /Makefile.example
parent11185161a0ec5c15a1852fd7bc387b82573b577a (diff)
downloadIshtar-9faab93c97b94e2dc2db11d3cbd9c0a5535cef52.tar.bz2
Ishtar-9faab93c97b94e2dc2db11d3cbd9c0a5535cef52.zip
New migration management
Diffstat (limited to 'Makefile.example')
-rw-r--r--Makefile.example18
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: