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>
533 B
533 B
| description |
|---|
| Push Prisma schema changes to database (dev only) |
Push the current Prisma schema to the database without creating migrations:
- Run
pnpm --filter=@tpmjs/db db:pushto sync schema changes to the database - After push completes, regenerate the Prisma client with
pnpm --filter=@tpmjs/db db:generate - 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.