fix(pglite): give scrobbles.id a sequence

SQLite's INTEGER PRIMARY KEY auto-assigns ids; the translated column had
no default, so every scrobble insert failed with a NOT NULL violation.
This commit is contained in:
Deluan 2026-09-05 01:55:55 -04:00
commit 647aaf1d21

View file

@ -347,7 +347,7 @@ CREATE TABLE IF NOT EXISTS "scrobble_buffer"
CONSTRAINT scrobble_buffer_pk_uq UNIQUE (user_id, service, media_file_id, play_time)
);
CREATE TABLE IF NOT EXISTS "scrobbles"(
id INTEGER PRIMARY KEY,
id bigserial PRIMARY KEY,
media_file_id text NOT NULL
,
user_id text NOT NULL