diff --git a/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js b/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js index 4e15a948cc..a4e02545c7 100644 --- a/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js +++ b/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js @@ -24,10 +24,10 @@ exports.up = async function up(knex) { ); table .text('entity_ref') + .notNullable() .references('entity_id') .inTable('refresh_state') .onDelete('CASCADE') - .notNullable() .comment('A reference to the entity that the refresh key is tied to'); table .text('key')