Skip to content
Commits on Source (2)
......@@ -437,7 +437,8 @@ schema_updates = {
'''ALTER TABLE stats_bugs ADD COLUMN open_locale INTEGER DEFAULT 0''',
'''ALTER TABLE stats_bugs ADD COLUMN done_locale INTEGER DEFAULT 0''',
],
19: [ # add column architecture to stats_pkg_state, stats_builds_per_day and stats_builds_age tables and set previous values to amd64
19: [ # add column architecture to stats_pkg_state, stats_builds_per_day
# and stats_builds_age tables and set previous values to amd64
"ALTER TABLE stats_pkg_state ADD COLUMN architecture TEXT NOT NULL DEFAULT 'amd64'",
"ALTER TABLE stats_builds_per_day ADD COLUMN architecture TEXT NOT NULL DEFAULT 'amd64'",
"ALTER TABLE stats_builds_age ADD COLUMN architecture TEXT NOT NULL DEFAULT 'amd64'",
......@@ -651,6 +652,10 @@ schema_updates = {
"UPDATE results SET status='E404' WHERE status='404'",
"UPDATE stats_build SET status='E404' WHERE status='404'",
],
37: [ # change the data type in the stats_build.build_date column
"ALTER TABLE stats_build ALTER COLUMN build_date SET DATA TYPE timestamp"
" USING build_date::timestamp"
]
}
......