2010-06-20 18:30:10 +02:00
|
|
|
CREATE VIRTUAL TABLE songs_fts USING fts3(
|
2010-06-20 23:14:16 +02:00
|
|
|
ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment,
|
|
|
|
tokenize=unicode
|
2010-06-20 18:30:10 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE VIRTUAL TABLE magnatune_songs_fts USING fts3(
|
2010-06-20 23:14:16 +02:00
|
|
|
ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment,
|
|
|
|
tokenize=unicode
|
2010-06-20 18:30:10 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
INSERT INTO songs_fts (ROWID, ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment)
|
|
|
|
SELECT ROWID, title, album, artist, albumartist, composer, genre, comment
|
|
|
|
FROM songs;
|
|
|
|
|
|
|
|
INSERT INTO magnatune_songs_fts (ROWID, ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment)
|
|
|
|
SELECT ROWID, title, album, artist, albumartist, composer, genre, comment
|
|
|
|
FROM magnatune_songs;
|
|
|
|
|
|
|
|
CREATE INDEX idx_album ON songs (album);
|
|
|
|
|
|
|
|
UPDATE schema_version SET version=13;
|
|
|
|
|