Skip to content

MG18 — DROP DATABASE destroys the whole database

Group: Migration safety · Auto-fixable: no

DROP DATABASE permanently deletes an entire database and everything in it. It cannot run inside a transaction and is almost never something a migration should do.

bad: DROP DATABASE app;

Disable this rule in banshee.toml:

[lint]
exclude = ["MG18"]

Or silence one line with -- noqa: MG18. See Linting.