Use UPSERT for consolidation settings to handle missing records
- Changed UPDATE to INSERT...ON DUPLICATE KEY UPDATE (MySQL) - Changed UPDATE to INSERT...ON CONFLICT DO UPDATE (SQLite) - Ensures records are created if they don't exist yet - Fixes issue where UPDATE fails silently on missing records - Handles both database types correctly
Showing
Please
register
or
sign in
to comment