A migration drops or renames a column that running code may still use
What it finds
Dropping or renaming a column breaks every query that still names it, including those of the version of the application that runs while the migration deploys. Stopping all reads first, then removing the column in a later release, avoids the outage.
From the rule's source, column_drop_or_rename.rs.
Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/sql:column-drop-or-rename" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:column-drop-or-rename shows the same in the terminal. Found a false positive? Report it.