changeset 788:9a1a2faa6a79

Preserve build id during latest upgrade.
author hodgestar
date Fri, 30 Apr 2010 11:47:32 +0000
parents 8e76b8f6310a
children 330fa697bc85
files bitten/upgrades.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/upgrades.py
+++ b/bitten/upgrades.py
@@ -150,9 +150,9 @@
         cursor.execute(stmt)
 
     # it's safe to make the last activity the stop time of the build
-    cursor.execute("INSERT INTO bitten_build (config,rev,rev_time,platform,"
+    cursor.execute("INSERT INTO bitten_build (id,config,rev,rev_time,platform,"
                    "slave,started,stopped,last_activity,status) "
-                   "SELECT config,rev,rev_time,platform,"
+                   "SELECT id,config,rev,rev_time,platform,"
                    "slave,started,stopped,stopped,status FROM old_build_v11")
 
 def add_config_to_reports(env, db):
Copyright (C) 2012-2017 Edgewall Software