rules/database-drizzle.md
This app uses SQLite and drizzle ORM.
Generate SQL migrations by running this:
npm run db:generate
IMPORTANT: Do NOT generate SQL migration files by hand! This is wrong.
When rebasing a branch that has drizzle migrations conflicting with upstream (e.g., both have 0023_*.sql):
0023_romantic_mantis.sql → 0025_romantic_mantis.sql)drizzle/meta/_journal.json to include all migrations with correct indicesdrizzle/meta/00XX_snapshot.json) with the new index, updating prevId to reference the previous snapshot's id