Skip to content

Generated API package scripts backed by Drizzle Kit.

  • db:generate --name <name> writes SQL and journal artifacts under packages/api/migrations/.
  • db:migrate applies pending committed artifacts to the configured SQLite database.
  • db:check validates the migration/schema state.
  • Server startup checks readiness and does not apply migrations automatically.
Terminal window
pnpm --filter ./packages/api db:generate --name add_field
pnpm --filter ./packages/api db:migrate
pnpm --filter ./packages/api db:check