File: schema-45.sql

package info (click to toggle)
clementine 1.3.1%2Bgit276-g3485bbe43%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 26,544 kB
  • sloc: cpp: 114,212; xml: 5,193; python: 3,704; sql: 858; ansic: 123; sh: 71; makefile: 29
file content (24 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (6)
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;