summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-03-25 19:28:06 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-03-25 19:28:06 +0000
commit4a6aa0faafe9ecbeb05234021d5c6b61cfc3f37f (patch)
treefa963c2920e5246179ab96f571d42fce949c1008 /utils
parent2265f6a7b1f8dff8db5b617cdb8cfe584a22888c (diff)
Run migrations in release, too
Signed-off-by: Rachel Kroll <rkroll@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2926 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'utils')
-rw-r--r--utils/release28
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/release b/utils/release
index 4e3a6f36..6b7c3ba0 100644
--- a/utils/release
+++ b/utils/release
@@ -79,6 +79,34 @@ then
su $BECOME_USER -c $BASE_DIR/site_utils/site_sync_code || exit 1
fi
+# --- run database migrations
+
+# - AFE
+
+print_status "Running AFE migrations"
+( cd $BASE_DIR/frontend &&
+ su $BECOME_USER -c "python ../database/migrate.py \
+ --database=AUTOTEST_WEB safesync"
+ su $BECOME_USER -c "python manage.py syncdb --noinput"
+ su $BECOME_USER -c "python manage.py syncdb --noinput"
+)
+
+# - TKO
+
+print_status "Running TKO migrations"
+( cd $BASE_DIR/tko &&
+ su $BECOME_USER -c "python ../database/migrate.py \
+ --database=TKO safesync"
+)
+
+# - SITE_DB
+
+print_status "Running site_db migrations"
+( cd $BASE_DIR/site_db &&
+ su $BECOME_USER -c "python ../database/migrate.py \
+ --database=TKO safesync"
+)
+
# --- compile AfeClient
print_status "Compiling AfeClient"