summaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-20 10:40:29 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-20 10:40:29 -1000
commit6a59098c3096f5ebd3a61ef5268cbd480b0f1519 (patch)
tree2192861ed6db801c030be9b67f05796c85bad20c /migrations
parent59227d33d6e7c01fbb1ebf96ea616c5f296df7b1 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'migrations')
-rw-r--r--migrations/003_add_sync_tokens.sql6
1 files changed, 6 insertions, 0 deletions
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
+);