Move to manage.py migrate in horizon

manage.py syncdb is deprecated since django 1.7

Change-Id: I2b419b183e839485b7c5080112a73bab3f869ce6
Closes-Bug: #1639259
This commit is contained in:
Jeffrey Zhang 2016-11-04 22:42:11 +08:00
parent da832be870
commit b09825d39d

View File

@ -7,7 +7,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
if [[ -f "/var/lib/kolla/venv/bin/python" ]]; then
MANAGE_PY="/var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py"
fi
$MANAGE_PY syncdb --noinput
$MANAGE_PY migrate --noinput
exit 0
fi