mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-29 14:37:49 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue