added makemigrations
diff --git a/xos/scripts/opencloud b/xos/scripts/opencloud
index b936ce3..1dd4645 100755
--- a/xos/scripts/opencloud
+++ b/xos/scripts/opencloud
@@ -136,10 +136,7 @@
fi
}
-function remigrate {
- if db_exists; then
- dropdb
- fi
+function makemigrations {
rm -rf /opt/xos/*/migrations
python ./manage.py makemigrations core
python ./manage.py makemigrations hpc
@@ -151,6 +148,13 @@
#python ./manage.py makemigrations servcomp
}
+function remigrate {
+ if db_exists; then
+ dropdb
+ fi
+ makemigrations
+}
+
COMMAND=$1
if [ "$COMMAND" = "initdb" ]; then
@@ -226,3 +230,7 @@
createdb
syncdb
fi
+if [ "$COMMAND" = "makemigrations" ]; then
+ makemigrations
+ syncdb
+fi