From 629ea43e9c361d2a2bed28bf093addd849029374 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 19 Oct 2015 09:35:36 +0000 Subject: reproducible: save the schedule message in the db and show it in the "test history" table --- bin/reproducible_db_maintenance.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/reproducible_db_maintenance.py') 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 + '")'], } -- cgit v1.2.3-54-g00ecf