fix: updated the migration file issue

This commit is contained in:
=
2025-08-06 11:59:37 +05:30
parent 4dcd3ed06c
commit 63cf36c722

View File

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