mirror of
https://github.com/civitai/civitai.git
synced 2026-09-20 22:08:18 +08:00
docs: point the migrations rule at the schema package
CLAUDE.md still told agents migrations live in prisma/migrations/ at the repo root. That directory no longer exists after #3448, and a stale instruction in README is what produced 62 hand-authored strays in the first place. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -68,7 +68,7 @@ pnpm run db:migrate:empty # Create an empty migration file
|
||||
```
|
||||
|
||||
**CRITICAL: We do NOT use `prisma migrate deploy`. Migrations are applied manually.**
|
||||
- Migration files in `prisma/migrations/` exist for review/history but are never auto-run
|
||||
- Migration files in `packages/civitai-db-schema/prisma/migrations/` exist for review/history but are never auto-run. That is the only directory Prisma reads — the `prisma/migrations/` path at the repo root predates the monorepo, no longer exists, and CI blocks re-creating it.
|
||||
- Each environment's DB is updated by a human running the SQL directly (psql, retool, etc.)
|
||||
- The `_prisma_migrations` table is not the source of truth — do not rely on it
|
||||
- When you add a new migration: write the SQL, commit it, and surface to the user that it needs to be applied manually to wherever they want it (preview / staging / prod)
|
||||
|
||||
Reference in New Issue
Block a user