Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ Key components:
- `make uninstall` - OK, preserves database (only removes LaunchAgent + MCP config)
- `make reinstall` - OK, just reinstalls Python package

### Before schema/migration changes:
**ALWAYS back up the database before making schema or migration changes:**
```bash
cp ~/.claude/contrib/analytics/data.db ~/.claude/contrib/analytics/data.db.backup-$(date +%Y%m%d-%H%M%S)
```
Migrations can have subtle bugs (race conditions, incorrect data transforms) that corrupt data irreversibly.

### If you need to test destructive operations:
Use a temporary database in tests (all tests already do this via `tmpdir`).

Expand Down