Four tests:
- schemaVersion constant equals 24
- v1 → latest: verifies all columns added across v2–v23 (account_type,
jmap_url, username, manage_sieve_host, thread_id, snoozed_until,
snoozed_from_mailbox_path, list_unsubscribe_header) and all tables
created across v4–v21 (drafts, sync_states, pending_changes,
sync_logs, sync_log_mailboxes, threads, sync_health, undo_actions)
- v22 → latest: specifically tests the two new steps added in v23/v24 —
emails.list_unsubscribe_header and drafts.imap_server_id
- fresh install: confirms all 12 tables exist and the two v23/v24
columns are present in a brand-new in-memory database
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>