invalid-primary-key-name (NM002)#
Automatic fix is not available.
What it does#
Checks that the name of the primary key constraint to be created is valid according to naming convention.
Why not?#
Naming conventions are crucial in database design as they offer consistency, clarity, and structure to the organization and accessibility of data within a database.
A good naming convention makes your code easier to read and understand.
When should you?#
Never.
Use instead:#
Name your primary key constraint according to the set name convention.
Configuration#
regex-constraint-primary-key
: Regex matching the naming convention for primary key
constraints.