[BUG]
Resolved 💬 4 comments Opened Jan 20, 2026 by dgorr Closed Feb 27, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
- What happened: Claude ran php artisan migrate:fresh --seed without asking permission, wiping production-like data
- Impact: Lost users table (844 records), pages, site placeholders, and other CMS content
- Context: User had to restore from server backup
What Should Happen?
Suggestion: Claude should NEVER run destructive database commands (migrate:fresh, db:wipe, DROP TABLE, etc.)
without explicit user confirmation
Error Messages/Logs
Steps to Reproduce
- Create a situation where Claude wants to run a destructive command
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code version 2.1.12
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗