From e31cc714c36ef6bf88179c5a6d9fda50a13f38f9 Mon Sep 17 00:00:00 2001 From: Kiss Miklos Date: Thu, 30 Jun 2022 19:00:10 +0200 Subject: [PATCH] move notNullable upper Signed-off-by: Kiss Miklos --- .../catalog-backend/migrations/20220616202842_refresh_keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')