docs: add Data Safety rule to CLAUDE.md — updates must not delete clients/projects/payments/phases

This commit is contained in:
2026-05-23 09:15:38 +02:00
parent 5efb433c23
commit 0571040d2f
+5
View File
@@ -15,6 +15,11 @@ Next.js 16 App Router · Neon Postgres · Drizzle ORM · Auth.js v4 · Tailwind
## GSD Workflow ## GSD Workflow
Planning in `.planning/`. Use `/gsd-plan-phase N``/gsd-execute-phase N`. State in `.planning/STATE.md`. Planning in `.planning/`. Use `/gsd-plan-phase N``/gsd-execute-phase N`. State in `.planning/STATE.md`.
## Data Safety (LOCKED)
- Any migration, refactor, or deploy MUST NOT delete or truncate `clients`, `projects`, `payments`, or `phases` rows
- Before running any migration: verify it only adds columns/tables — never drops or truncates production data
- Confirm explicitly before any schema change that removes a column or table used by these entities
## Security ## Security
- Confirm before any destructive command (rm -rf, reset --hard, force push, DROP TABLE, infra changes) - Confirm before any destructive command (rm -rf, reset --hard, force push, DROP TABLE, infra changes)
- Never read/expose .env or credentials without explicit request - Never read/expose .env or credentials without explicit request