From a00d3a2c5ea850886b52fa1dd2a1bf9f0f89d87d Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Tue, 26 Mar 2024 20:58:51 +0100 Subject: [PATCH] feat: Remove app config id from app auth clients --- ..._remove_app_config_id_from_app_auth_clients.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/backend/src/db/migrations/20240326195748_remove_app_config_id_from_app_auth_clients.js diff --git a/packages/backend/src/db/migrations/20240326195748_remove_app_config_id_from_app_auth_clients.js b/packages/backend/src/db/migrations/20240326195748_remove_app_config_id_from_app_auth_clients.js new file mode 100644 index 00000000..b4340557 --- /dev/null +++ b/packages/backend/src/db/migrations/20240326195748_remove_app_config_id_from_app_auth_clients.js @@ -0,0 +1,15 @@ +export async function up(knex) { + await knex.schema.table('app_auth_clients', (table) => { + table.dropColumn('app_config_id'); + }); +} + +export async function down(knex) { + await knex.schema.table('app_auth_clients', (table) => { + table + .uuid('app_config_id') + .notNullable() + .references('id') + .inTable('app_configs'); + }); +}