Skip to content

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

misc: ignore partitions in generate schema

Sheen Capadngan1687d66a0ee0
diff --git a/backend/scripts/generate-schema-types.ts b/backend/scripts/generate-schema-types.ts
index 43984ecfac..c7b1fcc7a9 100644
--- a/backend/scripts/generate-schema-types.ts
+++ b/backend/scripts/generate-schema-types.ts
@@ -90,7 +90,7 @@ const main = async () => {
.whereRaw("table_schema = current_schema()")
.select<{ tableName: string }[]>("table_name as tableName")
.orderBy("table_name")
- ).filter((el) => !el.tableName.includes("_migrations"));
+ ).filter((el) => !el.tableName.includes("_migrations") && !el.tableName.includes("partitioned_audit_logs_"));
for (let i = 0; i < tables.length; i += 1) {
const { tableName } = tables[i];
diff --git a/backend/src/db/schemas/audit-logs.ts b/backend/src/db/schemas/audit-logs.ts
index d1c239724c..b8906698b6 100644
--- a/backend/src/db/schemas/audit-logs.ts
+++ b/backend/src/db/schemas/audit-logs.ts
@@ -20,8 +20,7 @@ export const AuditLogsSchema = z.object({
createdAt: z.date(),
updatedAt: z.date(),
orgId: z.string().uuid().nullable().optional(),
- projectId: z.string().nullable().optional(),
- projectName: z.string().nullable().optional()
+ projectId: z.string().nullable().optional()
});
export type TAuditLogs = z.infer<typeof AuditLogsSchema>;