forked from lix-project/hydra
hydra.sql: add IndexRunCommandLogsOnBuildID index
This commit is contained in:
parent
d0b6329aa8
commit
b57345ba1f
|
@ -609,6 +609,7 @@ create table RunCommandLogs (
|
|||
-- core_dumped must not be null. However, these semantics are tricky
|
||||
-- to encode as constraints and probably provide limited actual value.
|
||||
);
|
||||
create index IndexRunCommandLogsOnBuildID on RunCommandLogs(build_id);
|
||||
|
||||
-- The output paths that have permanently failed.
|
||||
create table FailedPaths (
|
||||
|
|
|
@ -2,3 +2,4 @@ alter table runcommandlogs add column uuid uuid;
|
|||
update runcommandlogs set uuid = gen_random_uuid() where uuid is null;
|
||||
alter table runcommandlogs alter column uuid set not null;
|
||||
alter table runcommandlogs add constraint RunCommandLogs_uuid_unique unique(uuid);
|
||||
create index IndexRunCommandLogsOnBuildID on RunCommandLogs(build_id);
|
||||
|
|
Loading…
Reference in a new issue