Skip to content

Commit

Permalink
🗃️ make every barcode from the barcode index unique
Browse files Browse the repository at this point in the history
  • Loading branch information
josuablejeru committed Sep 15, 2023
1 parent 00b7bb5 commit 7b98514
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ CREATE TABLE IF NOT EXISTS product
quantity INT
);

CREATE INDEX ON product (barcode);
CREATE UNIQUE INDEX barcode_idx ON product (barcode);

CREATE TRIGGER trigger_test_genid
BEFORE INSERT
Expand Down

0 comments on commit 7b98514

Please sign in to comment.