Skip to content

Commit 53896ff

Browse files
committed
Merge remote-tracking branch 'origin/master' into flake
2 parents 881b744 + 8347934 commit 53896ff

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/sql/upgrade-62.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Make the Jobs.jobset_id column NOT NULL. If this upgrade fails,
2+
-- either the admin didn't run the backfiller or there is a bug. If
3+
-- the admin ran the backfiller and there are null columns, it is
4+
-- very important to figure out where the nullable columns came from.
5+
6+
ALTER TABLE Jobs
7+
ALTER COLUMN jobset_id SET NOT NULL;

src/sql/upgrade-63.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
-- Make the Jobs.jobset_id column NOT NULL. If this upgrade fails,
1+
-- Make the Builds.jobset_id column NOT NULL. If this upgrade fails,
22
-- either the admin didn't run the backfiller or there is a bug. If
33
-- the admin ran the backfiller and there are null columns, it is
44
-- very important to figure out where the nullable columns came from.
55

6-
ALTER TABLE Jobs
6+
ALTER TABLE Builds
77
ALTER COLUMN jobset_id SET NOT NULL;

src/sql/upgrade-64.sql

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
-- Make the Builds.jobset_id column NOT NULL. If this upgrade fails,
2-
-- either the admin didn't run the backfiller or there is a bug. If
3-
-- the admin ran the backfiller and there are null columns, it is
4-
-- very important to figure out where the nullable columns came from.
5-
6-
ALTER TABLE Builds
7-
ALTER COLUMN jobset_id SET NOT NULL;
1+
-- Index more exactly what the latest-finished query looks for.
2+
create index IndexFinishedSuccessfulBuilds
3+
on Builds(id DESC, buildstatus, finished, job, jobset_id)
4+
where buildstatus = 0 and finished = 1;

src/sql/upgrade-65.sql

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)