···320320321321 db.Exec(`CREATE TABLE IF NOT EXISTS cursors (
322322 id TEXT PRIMARY KEY,
323323- last_cursor INTEGER NOT NULL,
323323+ last_cursor BIGINT NOT NULL,
324324 updated_at ` + dateType + ` NOT NULL
325325 )`)
326326···373373 db.Exec(`UPDATE annotations SET body_value = text WHERE body_value IS NULL AND text IS NOT NULL`)
374374 db.Exec(`UPDATE annotations SET target_title = title WHERE target_title IS NULL AND title IS NOT NULL`)
375375 db.Exec(`UPDATE annotations SET motivation = 'commenting' WHERE motivation IS NULL`)
376376+377377+ if db.driver == "postgres" {
378378+ db.Exec(`ALTER TABLE cursors ALTER COLUMN last_cursor TYPE BIGINT`)
379379+ }
376380}
377381378382func (db *DB) Close() error {