Skip to content

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

fix(migration): drop queue_jobs trigger before dropping table

paullee4e8325c24de3
diff --git a/backend/src/db/migrations/20260327210655_drop-queue-persistence.ts b/backend/src/db/migrations/20260327210655_drop-queue-persistence.ts
index d929b04016..c027069518 100644
--- a/backend/src/db/migrations/20260327210655_drop-queue-persistence.ts
+++ b/backend/src/db/migrations/20260327210655_drop-queue-persistence.ts
@@ -7,8 +7,8 @@ const QUEUE_JOBS_TABLE = "queue_jobs";
export async function up(knex: Knex): Promise<void> {
const hasTable = await knex.schema.hasTable(QUEUE_JOBS_TABLE);
if (hasTable) {
- await knex.schema.dropTable(QUEUE_JOBS_TABLE);
await dropOnUpdateTrigger(knex, QUEUE_JOBS_TABLE);
+ await knex.schema.dropTable(QUEUE_JOBS_TABLE);
}
}