diff --git a/src/main/resources/db/changelog/changes/001-initial-schema.sql b/src/main/resources/db/changelog/changes/001-initial-schema.sql index 6637962..67ee3c7 100644 --- a/src/main/resources/db/changelog/changes/001-initial-schema.sql +++ b/src/main/resources/db/changelog/changes/001-initial-schema.sql @@ -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