Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions common/src/sql/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ CREATE TABLE omicron.public.metric_producer (
oximeter_id UUID NOT NULL
);

CREATE INDEX ON omicron.public.metric_producer (
CREATE UNIQUE INDEX ON omicron.public.metric_producer (
oximeter_id,
id
);
Expand Down Expand Up @@ -1130,8 +1130,9 @@ CREATE UNIQUE INDEX ON omicron.public.instance_external_ip (
)
WHERE time_deleted IS NULL;

CREATE INDEX ON omicron.public.instance_external_ip (
instance_id
CREATE UNIQUE INDEX ON omicron.public.instance_external_ip (
instance_id,
id
)
WHERE instance_id IS NOT NULL AND time_deleted IS NULL;

Expand Down