Database Migrations
OpenCodeHub uses Drizzle for schema management.
Generate migrations
Section titled “Generate migrations”npm run db:generateGenerates SQL migrations from the current schema.
Apply migrations
Section titled “Apply migrations”npm run db:migrateApplies pending migrations to the configured database.
Push schema (dev)
Section titled “Push schema (dev)”npm run db:pushPushes schema changes directly (useful for local development).
Inspect schema
Section titled “Inspect schema”npm run db:studioOpens the Drizzle Studio UI for inspecting tables.