Skip to content

Commit

Permalink
Primary key order matters
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Feb 28, 2024
1 parent 0d93a86 commit 7be0e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/crdb/38.0.0/up01.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ CREATE TABLE IF NOT EXISTS omicron.public.inv_physical_disk (

variant omicron.public.physical_disk_kind NOT NULL,

PRIMARY KEY (inv_collection_id, sled_id, vendor, serial, model)
PRIMARY KEY (inv_collection_id, sled_id, vendor, model, serial)
);

0 comments on commit 7be0e1e

Please sign in to comment.