PRO

Drizzle Kit Migration Gate

A non-interactive migration gate built on the drizzle-kit 1.0 rc.4 programmatic SDK at the drizzle-kit/cli subpath. It keeps rename-versus-create and confirm-data-loss decisions in a reviewed Hint array in the repository, asserts in CI that the schema and the committed migration folder agree by treating a no_changes result as the pass condition, rejects any unapproved destructive change by name with the reason drizzle-kit reported, and applies the same ledger on preview databases through push without ever reaching for force.

Install
npx shadcn@latest add @compronents/drizzle-kit-migration-gate

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Visualization
ci run
schema check
unknown
const result = await generate({ …config, hints: approvedHints })

CI asserts the schema and the committed migration folder agree; a no_changes result is the pass condition and the gate stays green.

Files
Checking access…
Dependencies