reprodcible: db_maintenance: convert stats_build.build_duration from text to integer

Thanks to Bernhard for noticing!
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 5e429a95
......@@ -668,6 +668,10 @@ schema_updates = {
ADD COLUMN distribution INTEGER DEFAULT 1
REFERENCES distributions(id)""",
],
39: [ # fix build_duration datatype
"ALTER TABLE stats_build ALTER COLUMN build_duration SET DATA TYPE integer"
" USING build_duration::integer"
],
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment