summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-20 20:02:26 +0000
committerHolger Levsen <holger@layer-acht.org>2015-07-05 14:59:12 +0200
commitc976ffa8e4b3cc976f3310a138e71e3cb5bb5d94 (patch)
tree2a44d60d8ccfd3ea81b711690eaa25fdd9f241ba /bin
parent0cf31460831e3f9e26ae7c44df45682be8fd58bc (diff)
downloadjenkins.debian.net-c976ffa8e4b3cc976f3310a138e71e3cb5bb5d94.tar.xz
reproducible: db 17: add a 'builder' column to schedule, results, stats_build to save who builded what
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_db_maintenance.py5
1 files changed, 5 insertions, 0 deletions
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 + '")'],
}