Files
silo-server/migrations/063_collection_sync_schedule.up.sql
T

8 lines
310 B
SQL
Raw Normal View History

2026-05-22 20:26:11 -04:00
ALTER TABLE library_collections
ADD COLUMN IF NOT EXISTS sync_schedule TEXT,
ADD COLUMN IF NOT EXISTS next_sync_at TIMESTAMPTZ;
CREATE INDEX IF NOT EXISTS idx_library_collections_next_sync_due
ON library_collections (next_sync_at)
WHERE sync_schedule IS NOT NULL AND next_sync_at IS NOT NULL;