Skip to content

MG16 — DROP TABLE destroys the table and its dependents

Group: Migration safety · Auto-fixable: no

DROP TABLE permanently deletes the table and cascades to views, foreign keys, and policies that depend on it. Stage the removal behind a deploy that stops using the table first.

bad: DROP TABLE t;

Disable this rule in banshee.toml:

[lint]
exclude = ["MG16"]

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