Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: updated the migration file issue

=63cf36c72251
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 f321299065..0a05e9b22f 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<void> {
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");
});