diff --git a/dbrepo-metadata-db/1_setup-schema.sql b/dbrepo-metadata-db/1_setup-schema.sql index e2bde25ed6d64f69c4f8d6e897a49a672e3f9a71..99f5fe2c3b9da1cd57d30d64a16cdbd54073d7dd 100644 --- a/dbrepo-metadata-db/1_setup-schema.sql +++ b/dbrepo-metadata-db/1_setup-schema.sql @@ -545,7 +545,7 @@ CREATE TABLE IF NOT EXISTS `mdb_image_operators` documentation TEXT NOT NULL, PRIMARY KEY (id), FOREIGN KEY (image_id) REFERENCES `mdb_images` (`id`), - UNIQUE (value) + UNIQUE (image_id, value) ) WITH SYSTEM VERSIONING; COMMIT;