summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_db_maintenance.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-19 09:35:36 +0000
committerHolger Levsen <holger@layer-acht.org>2015-12-09 11:28:32 +0100
commit629ea43e9c361d2a2bed28bf093addd849029374 (patch)
tree42ffbb8232bb050bc4e7df826ead048a471cd644 /bin/reproducible_db_maintenance.py
parent46ddc27f0bbdc0aa0c27541d63460214c4686498 (diff)
downloadjenkins.debian.net-629ea43e9c361d2a2bed28bf093addd849029374.tar.xz
reproducible: save the schedule message in the db and show it in the "test history" table
Diffstat (limited to 'bin/reproducible_db_maintenance.py')
-rwxr-xr-xbin/reproducible_db_maintenance.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_db_maintenance.py b/bin/reproducible_db_maintenance.py
index 9bed6591..3eb87192 100755
--- a/bin/reproducible_db_maintenance.py
+++ b/bin/reproducible_db_maintenance.py
@@ -546,6 +546,10 @@ schema_updates = {
'DROP TABLE schedule',
'ALTER TABLE schedule_tmp RENAME TO schedule',
'INSERT INTO rb_schema VALUES ("25", "' + now + '")'],
+ 26: [ # add a column to the schedule table to save the schedule message
+ 'ALTER TABLE schedule ADD COLUMN message TEXT',
+ 'ALTER TABLE stats_build ADD COLUMN schedule_message TEXT NOT NULL DEFAULT ""',
+ 'INSERT INTO rb_schema VALUES ("26", "' + now + '")'],
}