Skip to content

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

265 B
Raw Blame
import { Knex } from "knex";

import { TableName } from "@app/db/schemas";

export const dropConstraintIfExists = (tableName: TableName, constraintName: string, knex: Knex) =>
  knex.raw("ALTER TABLE ?? DROP CONSTRAINT IF EXISTS ??;", [tableName, constraintName]);