mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 02:27:37 +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,
|
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");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user