mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
4eb7386c99
They don't mess up the the track order anymore A same track can now be added more than once to a playlist Closes #61
12 lines
227 B
SQL
12 lines
227 B
SQL
START TRANSACTION;
|
|
|
|
ALTER TABLE playlist ADD tracks TEXT;
|
|
UPDATE playlist SET tracks = (
|
|
SELECT GROUP_CONCAT(track_id SEPARATOR ',')
|
|
FROM playlist_track
|
|
WHERE playlist_id = playlist.id);
|
|
DROP TABLE playlist_track;
|
|
|
|
COMMIT;
|
|
|