diff --git a/data/data.qrc b/data/data.qrc
index ad2385696..7bc01cd90 100644
--- a/data/data.qrc
+++ b/data/data.qrc
@@ -10,6 +10,7 @@
schema/schema-16.sql
schema/schema-17.sql
schema/schema-18.sql
+ schema/schema-19.sql
schema/device-schema.sql
style/strawberry.css
style/smartplaylistsearchterm.css
diff --git a/data/schema/schema-19.sql b/data/schema/schema-19.sql
new file mode 100644
index 000000000..2bd231bc9
--- /dev/null
+++ b/data/schema/schema-19.sql
@@ -0,0 +1,19 @@
+DROP TABLE IF EXISTS %allsongstables_fts;
+
+DROP TABLE IF EXISTS songs_fts;
+
+DROP TABLE IF EXISTS subsonic_songs_fts;
+
+DROP TABLE IF EXISTS tidal_artists_songs_fts;
+
+DROP TABLE IF EXISTS tidal_albums_songs_fts;
+
+DROP TABLE IF EXISTS tidal_songs_fts;
+
+DROP TABLE IF EXISTS qobuz_artists_songs_fts;
+
+DROP TABLE IF EXISTS qobuz_albums_songs_fts;
+
+DROP TABLE IF EXISTS qobuz_songs_fts;
+
+UPDATE schema_version SET version=19;
diff --git a/data/schema/schema.sql b/data/schema/schema.sql
index fb2e24176..7acba1131 100644
--- a/data/schema/schema.sql
+++ b/data/schema/schema.sql
@@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS schema_version (
DELETE FROM schema_version;
-INSERT INTO schema_version (version) VALUES (18);
+INSERT INTO schema_version (version) VALUES (19);
CREATE TABLE IF NOT EXISTS directories (
path TEXT NOT NULL,
@@ -796,138 +796,3 @@ CREATE INDEX IF NOT EXISTS idx_album ON songs (album);
CREATE INDEX IF NOT EXISTS idx_title ON songs (title);
CREATE VIEW IF NOT EXISTS duplicated_songs as select artist dup_artist, album dup_album, title dup_title from songs as inner_songs where artist != '' and album != '' and title != '' and unavailable = 0 group by artist, album , title having count(*) > 1;
-
-CREATE VIRTUAL TABLE IF NOT EXISTS songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS subsonic_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS tidal_artists_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS tidal_albums_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS tidal_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS qobuz_artists_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS qobuz_albums_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS qobuz_songs_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
-
-CREATE VIRTUAL TABLE IF NOT EXISTS %allsongstables_fts USING fts5(
-
- ftstitle,
- ftsalbum,
- ftsartist,
- ftsalbumartist,
- ftscomposer,
- ftsperformer,
- ftsgrouping,
- ftsgenre,
- ftscomment,
- tokenize = "unicode61 remove_diacritics 1"
-
-);
diff --git a/src/core/database.cpp b/src/core/database.cpp
index e0c06701d..78daf0472 100644
--- a/src/core/database.cpp
+++ b/src/core/database.cpp
@@ -49,7 +49,7 @@
#include "sqlquery.h"
#include "scopedtransaction.h"
-const int Database::kSchemaVersion = 18;
+const int Database::kSchemaVersion = 19;
namespace {
constexpr char kDatabaseFilename[] = "strawberry.db";