Skip to main content

max / makenotwork

282 B · 6 lines History Blame Raw
1 -- Track per-device pull cursor for intelligent sync log compaction.
2 -- This allows pruning entries that ALL devices have already pulled,
3 -- rather than relying solely on age-based retention (90 days).
4
5 ALTER TABLE sync_devices ADD COLUMN last_pulled_seq BIGINT NOT NULL DEFAULT 0;
6