-- Migration 020: Watermark column for MR diffs sync
-- Tracks which MRs have had their file changes fetched, same pattern as closes_issues_synced_for_updated_at

ALTER TABLE merge_requests ADD COLUMN diffs_synced_for_updated_at INTEGER;

INSERT INTO schema_version (version, applied_at, description)
VALUES (20, strftime('%s', 'now') * 1000, 'MR diffs sync watermark');
