A column has an ENUM type

tx0/sql:enum-columnstrictwarningmaintainability/designdepth fastmaintainability

What it finds

A MySQL ENUM column keeps its allowed values in the table definition, so adding a value is a schema change, and the values sort by position rather than by name. A lookup table with a foreign key holds the same values as data.

From the rule's source, enum_column.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:

tx0.toml
[rules]
"tx0/sql:enum-column" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:enum-column shows the same in the terminal. Found a false positive? Report it.