swadhinbiswas ✨ feat(cli): harden auth, TLS, retries, and repo parsing · 1/22/2026
bdf41c6
39 lines · 587 Bytes
Raw Download

title: "Database Migrations"
description: "How to generate, apply, and inspect schema changes."

OpenCodeHub uses Drizzle for schema management.

Generate migrations

npm run db:generate

Generates SQL migrations from the current schema.

Apply migrations

npm run db:migrate

Applies pending migrations to the configured database.

Push schema (dev)

npm run db:push

Pushes schema changes directly (useful for local development).

Inspect schema

npm run db:studio

Opens the Drizzle Studio UI for inspecting tables.