mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: updated the migration file issue
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user