From abfbacba46aae31105164ff5a570f81cc78b013b Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Fri, 9 Apr 2021 16:22:18 +0200 Subject: [PATCH] Make entity ref unique Signed-off-by: Johan Haals --- .../catalog-backend/migrations/20210302150147_refresh_state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-backend/migrations/20210302150147_refresh_state.js b/plugins/catalog-backend/migrations/20210302150147_refresh_state.js index ae8a02c785..6ee10531eb 100644 --- a/plugins/catalog-backend/migrations/20210302150147_refresh_state.js +++ b/plugins/catalog-backend/migrations/20210302150147_refresh_state.js @@ -25,7 +25,7 @@ exports.up = async function up(knex) { table.text('id').primary().notNullable().comment('Primary id'); table .text('entity_ref') - .primary() + .unique() .notNullable() .comment('A reference to the entity that the refresh state is tied to'); table