2019-07-30 22:45:22 +02:00
|
|
|
DROP TABLE %allsongstables_fts;
|
|
|
|
|
|
|
|
DROP TABLE playlist_items_fts_;
|
|
|
|
|
|
|
|
CREATE VIRTUAL TABLE %allsongstables_fts USING fts5(
|
|
|
|
|
|
|
|
ftstitle,
|
|
|
|
ftsalbum,
|
|
|
|
ftsartist,
|
|
|
|
ftsalbumartist,
|
|
|
|
ftscomposer,
|
|
|
|
ftsperformer,
|
|
|
|
ftsgrouping,
|
|
|
|
ftsgenre,
|
|
|
|
ftscomment,
|
2020-08-05 23:31:52 +02:00
|
|
|
tokenize = "unicode61 remove_diacritics 1"
|
2019-07-30 22:45:22 +02:00
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE VIRTUAL TABLE playlist_items_fts_ USING fts5(
|
|
|
|
|
|
|
|
ftstitle,
|
|
|
|
ftsalbum,
|
|
|
|
ftsartist,
|
|
|
|
ftsalbumartist,
|
|
|
|
ftscomposer,
|
|
|
|
ftsperformer,
|
|
|
|
ftsgrouping,
|
|
|
|
ftsgenre,
|
|
|
|
ftscomment,
|
2020-08-05 23:31:52 +02:00
|
|
|
tokenize = "unicode61 remove_diacritics 1"
|
2019-07-30 22:45:22 +02:00
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
INSERT INTO %allsongstables_fts (ROWID, ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsperformer, ftsgrouping, ftsgenre, ftscomment)
|
|
|
|
SELECT ROWID, title, album, artist, albumartist, composer, performer, grouping, genre, comment FROM %allsongstables;
|
|
|
|
|
|
|
|
INSERT INTO playlist_items_fts_ (ROWID, ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsperformer, ftsgrouping, ftsgenre, ftscomment)
|
|
|
|
SELECT ROWID, title, album, artist, albumartist, composer, performer, grouping, genre, comment FROM playlist_items;
|
|
|
|
|
|
|
|
UPDATE schema_version SET version=9;
|