Make entity ref unique

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-04-09 16:22:18 +02:00
parent aaf8233a5e
commit abfbacba46
@@ -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