hydra.nixos.org is already running this rev, and it should be safe to apply to everyone else. If we make changes to this migration, we'll need to write another migration anyway.
8 lines
433 B
SQL
8 lines
433 B
SQL
alter table Jobsets alter column nixExprInput drop not null;
|
|
alter table Jobsets alter column nixExprPath drop not null;
|
|
alter table Jobsets add column type integer default 0;
|
|
alter table Jobsets add column flake text;
|
|
alter table Jobsets add check ((type = 0) = (nixExprInput is not null and nixExprPath is not null));
|
|
alter table Jobsets add check ((type = 1) = (flake is not null));
|
|
alter table JobsetEvals add column flake text;
|