Updated Import collection library and playlists data from Clementine (markdown)
parent
4dd2764283
commit
ac5cf92154
|
@ -31,7 +31,7 @@ This must be done when importing all data from Clementine because playlists are
|
|||
|
||||
DELETE FROM strawberry.playlist_items;
|
||||
|
||||
-- Import all data from the collection library songs:
|
||||
Import all data from the collection library songs:
|
||||
|
||||
INSERT INTO strawberry.directories (path, subdirs) SELECT path, subdirs FROM clementine.directories;
|
||||
|
||||
|
@ -48,12 +48,12 @@ This must be done when importing all data from Clementine because playlists are
|
|||
|
||||
UPDATE strawberry.songs SET song_id = "";
|
||||
|
||||
-- Import playlists:
|
||||
Import playlists:
|
||||
|
||||
INSERT INTO strawberry.playlists (ROWID, name, last_played, special_type, ui_path, is_favorite, dynamic_playlist_type, dynamic_playlist_data, dynamic_playlist_backend)
|
||||
SELECT ROWID, name, last_played, special_type, ui_path, is_favorite, dynamic_playlist_type, dynamic_playlist_data, dynamic_playlist_backend FROM clementine.playlists WHERE dynamic_playlist_type ISNULL;
|
||||
|
||||
-- Import playlist items:
|
||||
Import playlist items:
|
||||
|
||||
INSERT INTO strawberry.playlist_items
|
||||
(ROWID,
|
||||
|
@ -153,6 +153,8 @@ This must be done when importing all data from Clementine because playlists are
|
|||
|
||||
UPDATE strawberry.playlist_items SET song_id = "";
|
||||
|
||||
Recreate the FTS tables:
|
||||
|
||||
DELETE FROM strawberry.songs_fts;
|
||||
|
||||
INSERT INTO strawberry.songs_fts (ROWID, ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsperformer, ftsgrouping, ftsgenre, ftscomment)
|
||||
|
|
Loading…
Reference in New Issue