A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz

Ignore conflicts on xata_id or sha256

Handle conflicts on either xata_id or sha256 independently so inserts
are skipped when either key already exists

+2 -1
+2 -1
crates/pgpull/src/repo/track.rs
··· 58 58 album_uri, 59 59 xata_createdat 60 60 ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24) 61 - ON CONFLICT (xata_id, sha256) DO NOTHING 61 + ON CONFLICT (xata_id) DO NOTHING 62 + ON CONFLICT (sha256) DO NOTHING 62 63 "#, 63 64 ) 64 65 .bind(&track.xata_id)