From c976ffa8e4b3cc976f3310a138e71e3cb5bb5d94 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 20 Jun 2015 20:02:26 +0000 Subject: reproducible: db 17: add a 'builder' column to schedule, results, stats_build to save who builded what --- bin/reproducible_db_maintenance.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_db_maintenance.py b/bin/reproducible_db_maintenance.py index 588d3cd1..ab426e28 100755 --- a/bin/reproducible_db_maintenance.py +++ b/bin/reproducible_db_maintenance.py @@ -418,6 +418,11 @@ schema_updates = { 'DROP TABLE stats_bugs', 'ALTER TABLE stats_bugs_tmp RENAME TO stats_bugs', 'INSERT INTO rb_schema VALUES ("16", "' + now + '")'], + 17: [ # save what builders builds what. This is tied to the current setup + 'ALTER TABLE schedule ADD COLUMN builder TEXT', + 'ALTER TABLE results ADD COLUMN builder TEXT NOT NULL DEFAULT ""', + 'ALTER TABLE stats_build ADD COLUMN builder TEXT NOT NULL DEFAULT ""', + 'INSERT INTO rb_schema VALUES ("17", "' + now + '")'], } -- cgit v1.2.3-70-g09d2