Write on the margins of the internet. Powered by the AT Protocol.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update `cursors.last_cursor` column to `BIGINT` and add PostgreSQL migration for type alteration.

scanash00 5097267f 12ebb325

+5 -1
+5 -1
backend/internal/db/db.go
··· 320 320 321 321 db.Exec(`CREATE TABLE IF NOT EXISTS cursors ( 322 322 id TEXT PRIMARY KEY, 323 - last_cursor INTEGER NOT NULL, 323 + last_cursor BIGINT NOT NULL, 324 324 updated_at ` + dateType + ` NOT NULL 325 325 )`) 326 326 ··· 373 373 db.Exec(`UPDATE annotations SET body_value = text WHERE body_value IS NULL AND text IS NOT NULL`) 374 374 db.Exec(`UPDATE annotations SET target_title = title WHERE target_title IS NULL AND title IS NOT NULL`) 375 375 db.Exec(`UPDATE annotations SET motivation = 'commenting' WHERE motivation IS NULL`) 376 + 377 + if db.driver == "postgres" { 378 + db.Exec(`ALTER TABLE cursors ALTER COLUMN last_cursor TYPE BIGINT`) 379 + } 376 380 } 377 381 378 382 func (db *DB) Close() error {