Skip to content

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

Patch migration file hasTable ref

Tuan Dangba1b22365581
diff --git a/backend/src/db/migrations/20240506163405_trusted-saml-ldap-emails.ts b/backend/src/db/migrations/20240506163405_trusted-saml-ldap-emails.ts
index 8e7fd8b8b3..950f78e582 100644
--- a/backend/src/db/migrations/20240506163405_trusted-saml-ldap-emails.ts
+++ b/backend/src/db/migrations/20240506163405_trusted-saml-ldap-emails.ts
@@ -3,7 +3,7 @@ import { Knex } from "knex";
import { TableName } from "../schemas";
export async function up(knex: Knex): Promise<void> {
- const isUserAliasTablePresent = await knex.schema.hasTable(TableName.SuperAdmin);
+ const isUserAliasTablePresent = await knex.schema.hasTable(TableName.UserAliases);
if (isUserAliasTablePresent) {
await knex.schema.alterTable(TableName.UserAliases, (t) => {
t.string("username").nullable().alter();