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
Clean up comments in certificate requests migration
Akhil Mohan67ebc64bb9f1
diff --git a/backend/src/db/migrations/20251127120000_add-certificate-requests.ts b/backend/src/db/migrations/20251127120000_add-certificate-requests.tsindex 5f77cdbc83..5677e0ad0e 100644--- a/backend/src/db/migrations/20251127120000_add-certificate-requests.ts+++ b/backend/src/db/migrations/20251127120000_add-certificate-requests.ts@@ -37,16 +37,6 @@ export async function up(knex: Knex): Promise<void> {t.index(["createdAt"]);});- // The trigger must be created inside the hasTable guard (so the migration- // is idempotent on re-run) but outside the createTable callback — Knex- // 3.x does not await async callbacks passed to createTable, so awaiting- // createOnUpdateTrigger inside the callback would make the trigger- // creation fire-and-forget and the migration would return before the- // CREATE TRIGGER DDL had been issued. The other migrations in this repo- // that guard createOnUpdateTrigger (e.g. 20260401124650_certificate-- // inventory-views.ts, 20260413000001_gateway-enrollment-tokens.ts) place- // the call in this position: inside the hasTable guard, outside the- // createTable callback.await createOnUpdateTrigger(knex, TableName.CertificateRequests);}}