1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 18:58:55 +01:00
Clementine-audio-player-Mac.../data/schema/schema-13.sql
2010-10-17 11:22:34 +00:00

23 lines
825 B
SQL

CREATE VIRTUAL TABLE songs_fts USING fts3(
ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment,
tokenize=unicode
);
CREATE VIRTUAL TABLE magnatune_songs_fts USING fts3(
ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment,
tokenize=unicode
);
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;