forked from lix-project/hydra
Merge remote-tracking branch 'origin/master' into flake
This commit is contained in:
commit
53896ff19b
7
src/sql/upgrade-62.sql
Normal file
7
src/sql/upgrade-62.sql
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
-- Make the Jobs.jobset_id column NOT NULL. If this upgrade fails,
|
||||||
|
-- either the admin didn't run the backfiller or there is a bug. If
|
||||||
|
-- the admin ran the backfiller and there are null columns, it is
|
||||||
|
-- very important to figure out where the nullable columns came from.
|
||||||
|
|
||||||
|
ALTER TABLE Jobs
|
||||||
|
ALTER COLUMN jobset_id SET NOT NULL;
|
|
@ -1,7 +1,7 @@
|
||||||
-- Make the Jobs.jobset_id column NOT NULL. If this upgrade fails,
|
-- Make the Builds.jobset_id column NOT NULL. If this upgrade fails,
|
||||||
-- either the admin didn't run the backfiller or there is a bug. If
|
-- either the admin didn't run the backfiller or there is a bug. If
|
||||||
-- the admin ran the backfiller and there are null columns, it is
|
-- the admin ran the backfiller and there are null columns, it is
|
||||||
-- very important to figure out where the nullable columns came from.
|
-- very important to figure out where the nullable columns came from.
|
||||||
|
|
||||||
ALTER TABLE Jobs
|
ALTER TABLE Builds
|
||||||
ALTER COLUMN jobset_id SET NOT NULL;
|
ALTER COLUMN jobset_id SET NOT NULL;
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
-- Make the Builds.jobset_id column NOT NULL. If this upgrade fails,
|
-- Index more exactly what the latest-finished query looks for.
|
||||||
-- either the admin didn't run the backfiller or there is a bug. If
|
create index IndexFinishedSuccessfulBuilds
|
||||||
-- the admin ran the backfiller and there are null columns, it is
|
on Builds(id DESC, buildstatus, finished, job, jobset_id)
|
||||||
-- very important to figure out where the nullable columns came from.
|
where buildstatus = 0 and finished = 1;
|
||||||
|
|
||||||
ALTER TABLE Builds
|
|
||||||
ALTER COLUMN jobset_id SET NOT NULL;
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
-- Index more exactly what the latest-finished query looks for.
|
|
||||||
create index IndexFinishedSuccessfulBuilds
|
|
||||||
on Builds(id DESC, buildstatus, finished, job, jobset_id)
|
|
||||||
where buildstatus = 0 and finished = 1;
|
|
Loading…
Reference in a new issue