Commit b98382dd authored by Mahmoud Aglan's avatar Mahmoud Aglan

Bulletproof retroactive wizard: fix all NOT NULL violations and edge cases

- spouses: add spouse_order, gender, classification, fallback date_of_birth
- children: add child_order, relationship, classification, fallback date_of_birth
- temporary_members: fallback date_of_birth, gender
- members: phone_mobile defaults to placeholder, date_of_birth fallback
- installment_plans: down_payment_receipt cast to string (VARCHAR column)
- All dates go through safeDate() — rejects garbage, parses valid formats
- All timestamps go through safeTimestamp() — never produces invalid datetime
- financial_year '2020/2021' extracted correctly for created_at
- bccomp amounts always cast to string to avoid type errors
- Null-safe on every optional field — zero room for SQL errors
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 36a0cad4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment