Migrations
View as MarkdownIdentity
Section titled “Identity”Generated API package scripts backed by Drizzle Kit.
Contract
Section titled “Contract”db:generate --name <name>writes SQL and journal artifacts underpackages/api/migrations/.db:migrateapplies pending committed artifacts to the configured SQLite database.db:checkvalidates the migration/schema state.- Server startup checks readiness and does not apply migrations automatically.
Minimal lookup
Section titled “Minimal lookup”pnpm --filter ./packages/api db:generate --name add_fieldpnpm --filter ./packages/api db:migratepnpm --filter ./packages/api db:check