Data integrity
Deleting customers without losing history
- Problem
- Deleting customers could break the order history that referenced them.
- Approach
- Agreed with stakeholders to keep order lines with NULL customer references, then updated the schema and procedures.
- Result
- An agreed approach, with checks that restoration works.
