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 wrong ensure table placed in return guard if
Fang-Pen Lin303b105e7dca
diff --git a/backend/src/auto-start-migrations.ts b/backend/src/auto-start-migrations.tsindex 66cbf738ac..d3d1a618eb 100644--- a/backend/src/auto-start-migrations.ts+++ b/backend/src/auto-start-migrations.ts@@ -118,8 +118,6 @@ const ensureMigrationTables = async (db: Knex, logger: Logger): Promise<void> =>// It's possible multiple instances sees the missing migration table and try to initialize it at the same time.// But only the one instance which acquired the lock will be able to initialize the migration table.logger.info("Migration tables already initialized by another instance, skipping initialization.");- // Ensure the startup lock table exists even if migration tables were already initialized- await ensureStartupLockTable(tx, logger);return;}// The currentVersion will call ensureTable, end up creating the migration table, lock table,