From 6a59098c3096f5ebd3a61ef5268cbd480b0f1519 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 20 Jan 2026 10:40:29 -1000 Subject: Implement efficient sync for Todoist and Trello APIs - Add Todoist Sync API v9 support with incremental sync tokens - Store sync tokens in SQLite for persistence across restarts - Add field filtering to Trello API calls to reduce payload size - Update handlers to use incremental sync (merge changes vs full replace) Co-Authored-By: Claude Opus 4.5 --- migrations/003_add_sync_tokens.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 migrations/003_add_sync_tokens.sql (limited to 'migrations') diff --git a/migrations/003_add_sync_tokens.sql b/migrations/003_add_sync_tokens.sql new file mode 100644 index 0000000..dd29576 --- /dev/null +++ b/migrations/003_add_sync_tokens.sql @@ -0,0 +1,6 @@ +-- Sync tokens table for incremental API sync +CREATE TABLE IF NOT EXISTS sync_tokens ( + service TEXT PRIMARY KEY, + token TEXT NOT NULL, + updated_at DATETIME DEFAULT CURRENT_TIMESTAMP +); -- cgit v1.2.3