File: schema-45.sql

package info (click to toggle)
clementine 1.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,792 kB
  • ctags: 20,160
  • sloc: cpp: 111,170; xml: 4,413; python: 2,687; ansic: 984; sql: 753; sh: 66; makefile: 25
file content (24 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CREATE VIRTUAL TABLE playlist_items_fts USING fts3(
  ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsgenre, ftscomment,
  tokenize=unicode
);

DELETE FROM %allsongstables_fts;

DROP TABLE %allsongstables_fts;

ALTER TABLE %allsongstables ADD COLUMN performer TEXT;

ALTER TABLE %allsongstables ADD COLUMN grouping TEXT;

CREATE VIRTUAL TABLE %allsongstables_fts USING fts3(
  ftstitle, ftsalbum, ftsartist, ftsalbumartist, ftscomposer, ftsperformer, ftsgrouping, ftsgenre, ftscomment,
  tokenize=unicode
);

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;

UPDATE schema_version SET version=45;