MG05 — DROP COLUMN destroys data and breaks dependents
Group: Migration safety · Auto-fixable: no
Dropping a column permanently deletes its data and breaks views, indexes, and client code that still reference it. Stage the removal: stop using the column, deploy, then drop it once nothing depends on it.
Example
Section titled “Example”bad: ALTER TABLE t DROP COLUMN c;Configure
Section titled “Configure”Disable this rule in banshee.toml:
[lint]exclude = ["MG05"]Or silence one line with -- noqa: MG05. See Linting.