summaryrefslogtreecommitdiffstats
path: root/autobuild.rb
diff options
context:
space:
mode:
Diffstat (limited to 'autobuild.rb')
-rwxr-xr-xautobuild.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/autobuild.rb b/autobuild.rb
index a58ca97..222fb66 100755
--- a/autobuild.rb
+++ b/autobuild.rb
@@ -218,6 +218,8 @@ def drop_run(db, r)
t_start = Date.parse(r).strftime('%s')
run_id = db.execute("SELECT Id FROM Runs WHERE Start='#{t_start}'")[0][0]
puts "Dropping run #{t_start}"
+ db.execute "DELETE FROM Attributes WHERE Run = #{run_id}"
+ db.execute "DELETE FROM Diffs WHERE Run = #{run_id}"
db.execute "DELETE FROM Results WHERE Run = #{run_id}"
db.execute "DELETE FROM Runs WHERE Id = #{run_id}"
end