tpmjs/.claude/commands/db-push.md
Ajax Davis fa962d3527 feat(claude): add database slash commands for common operations
Add 5 new slash commands for database management:

- /db-check - Check database connection and show table row counts
- /db-migrate - Create and apply Prisma migrations (production)
- /db-push - Push schema changes without migrations (development)
- /db-studio - Open Prisma Studio visual database browser
- /db-seed - Run seed script to initialize database

These commands make it easy to test database connectivity, run migrations,
view data in Prisma Studio, and seed the database with initial data.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 02:24:28 +10:00

533 B

description
Push Prisma schema changes to database (dev only)

Push the current Prisma schema to the database without creating migrations:

  1. Run pnpm --filter=@tpmjs/db db:push to sync schema changes to the database
  2. After push completes, regenerate the Prisma client with pnpm --filter=@tpmjs/db db:generate
  3. Report the results to the user

This is useful for development when you want to quickly iterate on schema changes without creating migration files. Do NOT use this in production - use db:migrate instead.