From 63cf36c7225147b84a67da45115366734db48c00 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 6 Aug 2025 11:59:37 +0530 Subject: [PATCH] fix: updated the migration file issue --- .../db/migrations/20250805151349_last-logged-auth-method.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/db/migrations/20250805151349_last-logged-auth-method.ts b/backend/src/db/migrations/20250805151349_last-logged-auth-method.ts index f32129906..0a05e9b22 100644 --- a/backend/src/db/migrations/20250805151349_last-logged-auth-method.ts +++ b/backend/src/db/migrations/20250805151349_last-logged-auth-method.ts @@ -27,13 +27,13 @@ export async function down(knex: Knex): Promise { TableName.IdentityOrgMembership, "lastLoggedInAuthMethod" ); - if (!lastUserLoggedInAuthMethod) { + if (lastUserLoggedInAuthMethod) { await knex.schema.alterTable(TableName.OrgMembership, (t) => { t.dropColumn("lastLoggedInAuthMethod"); }); } - if (!lastIdentityLoggedInAuthMethod) { + if (lastIdentityLoggedInAuthMethod) { await knex.schema.alterTable(TableName.IdentityOrgMembership, (t) => { t.dropColumn("lastLoggedInAuthMethod"); });