summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_db_maintenance.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-03 19:35:57 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-08 12:04:07 +0200
commite610a9f8ee63e8e536bc56f6a95f23128afb5243 (patch)
treed86ce6a7d03adc94bb332898be478ec51e02e51a /bin/reproducible_db_maintenance.py
parent2c17c478b6df442bcf60cc27014fe55f7a5f0ce2 (diff)
downloadjenkins.debian.net-e610a9f8ee63e8e536bc56f6a95f23128afb5243.tar.xz
reproducible: new table (and new column on the schedule table) on the db where to take note of who schedule what
Diffstat (limited to 'bin/reproducible_db_maintenance.py')
-rwxr-xr-xbin/reproducible_db_maintenance.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_db_maintenance.py b/bin/reproducible_db_maintenance.py
index 1bfddcff..74f37c21 100755
--- a/bin/reproducible_db_maintenance.py
+++ b/bin/reproducible_db_maintenance.py
@@ -365,6 +365,14 @@ schema_updates = {
# IRC notification
'ALTER TABLE schedule ADD COLUMN notify TEXT',
'INSERT INTO rb_schema VALUES ("12", "' + now + '")'],
+ 13: [ # take note of the manual scheduling done, to limit people
+ '''CREATE TABLE manual_scheduler (
+ id INTEGER PRIMARY KEY,
+ package_id INTEGER NOT NULL,
+ requester TEXT NOT NULL,
+ date_request INTEGER) NOT NULL'''
+ 'ALTER TABLE schedule ADD COLUMN scheduler TEXT'
+ 'INSERT INTO rb_schema VALUES ("12", "' + now + '")'],
}