Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix db schema
x032205e1a8d2e23aff
diff --git a/backend/src/db/migrations/20260408062748_pam-domains.ts b/backend/src/db/migrations/20260408062748_pam-domains.tsindex de4e86d623..3de691870b 100644--- a/backend/src/db/migrations/20260408062748_pam-domains.ts+++ b/backend/src/db/migrations/20260408062748_pam-domains.ts@@ -184,10 +184,7 @@ export async function down(knex: Knex): Promise<void> {}}- await knex.raw(`- ALTER TABLE ${TableName.PamAccount}- DROP CONSTRAINT IF EXISTS chk_pam_account_parent- `);+ await knex.raw(`ALTER TABLE ${TableName.PamAccount} DROP CONSTRAINT IF EXISTS chk_pam_account_parent`);if (await knex.schema.hasTable(TableName.PamAccount)) {const hasDomainId = await knex.schema.hasColumn(TableName.PamAccount, "domainId");diff --git a/backend/src/db/schemas/pam-discovery-source-resources.ts b/backend/src/db/schemas/pam-discovery-source-resources.tsindex f17f7ce615..af25295441 100644--- a/backend/src/db/schemas/pam-discovery-source-resources.ts+++ b/backend/src/db/schemas/pam-discovery-source-resources.ts@@ -14,8 +14,7 @@ export const PamDiscoverySourceResourcesSchema = z.object({lastDiscoveredAt: z.date(),lastDiscoveredRunId: z.string().uuid().nullable().optional(),isStale: z.boolean().default(false).nullable().optional(),- createdAt: z.date().nullable().optional(),- domainId: z.string().uuid().nullable().optional()+ createdAt: z.date().nullable().optional()});export type TPamDiscoverySourceResources = z.infer<typeof PamDiscoverySourceResourcesSchema>;diff --git a/backend/src/db/schemas/pam-domains.ts b/backend/src/db/schemas/pam-domains.tsindex 99241c5bd4..da1a63a99e 100644--- a/backend/src/db/schemas/pam-domains.ts+++ b/backend/src/db/schemas/pam-domains.ts@@ -16,7 +16,6 @@ export const PamDomainsSchema = z.object({domainType: z.string(),gatewayId: z.string().uuid().nullable().optional(),encryptedConnectionDetails: zodBuffer,- encryptedRotationAccountCredentials: zodBuffer.nullable().optional(),discoveryFingerprint: z.string().nullable().optional(),createdAt: z.date(),updatedAt: z.date()