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"); });