mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-18 07:30:29 +00:00
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:
parent
1b457784d9
commit
647aaf1d21
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user