diff --git a/openbas-api/src/main/java/io/openbas/migration/V3_54__TagRule.java b/openbas-api/src/main/java/io/openbas/migration/V3_54__TagRule.java index 30dc62b7c9..d01ab7bf11 100644 --- a/openbas-api/src/main/java/io/openbas/migration/V3_54__TagRule.java +++ b/openbas-api/src/main/java/io/openbas/migration/V3_54__TagRule.java @@ -35,7 +35,7 @@ tag_rule_id varchar(255) not null asset_id varchar(255) not null constraint asset_id_fk references assets, - primary key (tag_rule_id) + primary key (tag_rule_id, asset_id) ); """); }