Add an additional migration-ish step for django to the release script.
Signed-off-by: Gregory Smith <gps@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2978 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/release b/utils/release
index 6b7c3ba..6fb1476 100644
--- a/utils/release
+++ b/utils/release
@@ -107,6 +107,17 @@
--database=TKO safesync"
)
+# - Django syncdb
+
+print_status "Running syncdb on Django interface"
+# Due to the way Django creates permissions objects, we sometimes need
+# to run syncdb twice.
+for i in 1 2; do
+ ( cd $BASE_DIR/frontend &&
+ su $BECOME_USER -c "python manage.py syncdb --noinput"
+ )
+done
+
# --- compile AfeClient
print_status "Compiling AfeClient"
@@ -154,4 +165,3 @@
print_status "Finalizing release"
su $BECOME_USER -c $BASE_DIR/site_utils/site_restart_final || fatal
fi
-