mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Migrate old scrobbles with NULL duration rather than 0
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
84a1e252a1
commit
6e3bb4b426
@ -17,7 +17,7 @@ CREATE TABLE scrobbles_new(
|
||||
);
|
||||
|
||||
INSERT INTO scrobbles_new (id, media_file_id, user_id, submission_time, duration)
|
||||
SELECT lower(hex(randomblob(16))), media_file_id, user_id, submission_time, 0 FROM scrobbles;
|
||||
SELECT lower(hex(randomblob(16))), media_file_id, user_id, submission_time, NULL FROM scrobbles;
|
||||
|
||||
DROP TABLE scrobbles;
|
||||
ALTER TABLE scrobbles_new RENAME TO scrobbles;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user