Lightlines
By bobmatnyc

drizzle-migrations

bobmatnyc1.3k installs

Keep database changes SQL-first with Drizzle.

What it does

Guides database schema changes through SQL-first migrations, matching TypeScript schemas, and consistency checks.

When to use it

Use when creating or changing database schemas in Drizzle ORM TypeScript or JavaScript projects, especially to maintain consistency across environments.

How to use it

It changes how the agent develops database schemas by requiring SQL migrations before TypeScript schema code.

What you provide

  • An existing project

Good to know

  • cannot be undone: staging database

Latest review

What you need · 10

The TypeScript schema implementation imports Drizzle ORM's PostgreSQL schema definitions.

The workflow uses Drizzle Kit to generate schema files and migration snapshots.


Access · 4

This skill

staging database

Write

Changes staging schemas and data (irreversible)

staging API routes

Read

Checks staging API routes