SQL_001_CONSTRAINTS_FOR_INTEGRITY: Integritaet gehoert in die Datenbank
Severity: must. Bereich: sql-db-migrations.
Regel
Fachlich harte Invarianten MUESSEN durch Primary Keys, Foreign Keys, Unique-, Check- oder Not-Null-Constraints abgesichert werden, nicht nur durch PHP- oder JavaScript-Validierung.
Reflection-Check
check:
reflect:
objects:
- table
- constraintEvidence
- POSTGRES_CONSTRAINTS, PostgreSQL Documentation: Constraints
- LOCAL_PHP_SPECS, Lokale PHP YAML Library