hydra.sql: add IndexRunCommandLogsOnBuildID index

This commit is contained in:
Cole Helbling
2022-01-31 12:56:34 -08:00
parent d0b6329aa8
commit b57345ba1f
2 changed files with 2 additions and 0 deletions

View File

@@ -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);