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
12 changes: 6 additions & 6 deletions omicron-common/src/sql/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ CREATE TABLE omicron.public.Vpc (
);

CREATE UNIQUE INDEX ON omicron.public.Vpc (
name,
project_id
project_id,
name
) WHERE
time_deleted IS NULL;

Expand All @@ -283,8 +283,8 @@ CREATE TABLE omicron.public.VpcSubnet (

/* Subnet and network interface names are unique per VPC, not project */
CREATE UNIQUE INDEX ON omicron.public.VpcSubnet (
name,
vpc_id
vpc_id,
name
) WHERE
time_deleted IS NULL;

Expand Down Expand Up @@ -314,8 +314,8 @@ CREATE TABLE omicron.public.NetworkInterface (
*/

CREATE UNIQUE INDEX ON omicron.public.NetworkInterface (
name,
vpc_id
vpc_id,
name
) WHERE
time_deleted IS NULL;

Expand Down