MP034CRITICALFree
ban-drop-database
What It Detects
DROP DATABASE in a migration file permanently destroys the entire database.
Why It's Dangerous
DROP DATABASE is the most destructive operation possible. It permanently removes the database and all its contents. This should never appear in a migration file.
Bad Example
DROP DATABASE production;
Good Example
-- Never DROP DATABASE in a migration file
Configuration
Disable this rule:
# .migrationpilotrc.yml rules: MP034: false
Or change its severity:
# .migrationpilotrc.yml
rules:
MP034:
severity: warning