A table is created without a primary key
What it finds
A table without a primary key has no column that identifies a row, so duplicates go unnoticed, rows cannot be updated reliably by key, and replication tools may refuse the table. A primary key added later in the same file counts.
From the rule's source, table_without_primary_key.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:table-without-primary-key" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:table-without-primary-key shows the same in the terminal. Found a false positive? Report it.