fix: updated the migration file issue

This commit is contained in:
=
2025-08-06 11:59:37 +05:30
parent 4dcd3ed06c
commit 63cf36c722
@@ -27,13 +27,13 @@ export async function down(knex: Knex): Promise<void> {
TableName.IdentityOrgMembership, TableName.IdentityOrgMembership,
"lastLoggedInAuthMethod" "lastLoggedInAuthMethod"
); );
if (!lastUserLoggedInAuthMethod) { if (lastUserLoggedInAuthMethod) {
await knex.schema.alterTable(TableName.OrgMembership, (t) => { await knex.schema.alterTable(TableName.OrgMembership, (t) => {
t.dropColumn("lastLoggedInAuthMethod"); t.dropColumn("lastLoggedInAuthMethod");
}); });
} }
if (!lastIdentityLoggedInAuthMethod) { if (lastIdentityLoggedInAuthMethod) {
await knex.schema.alterTable(TableName.IdentityOrgMembership, (t) => { await knex.schema.alterTable(TableName.IdentityOrgMembership, (t) => {
t.dropColumn("lastLoggedInAuthMethod"); t.dropColumn("lastLoggedInAuthMethod");
}); });