From b49cd8a813bee0804aa53f49baf9676f681d37a9 Mon Sep 17 00:00:00 2001 From: Ade Date: Sun, 6 Jan 2019 16:52:39 +1300 Subject: [PATCH] Attempt to fix Index creation error --- headphones/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/__init__.py b/headphones/__init__.py index cbade4a9..9a0c4fc5 100644 --- a/headphones/__init__.py +++ b/headphones/__init__.py @@ -444,7 +444,7 @@ def dbcheck(): c.execute('CREATE INDEX IF NOT EXISTS artist_artistsortname ON artists(ArtistSortName COLLATE NOCASE ASC)') c.execute( - 'CREATE INDEX IF NOT EXISTS have_matched_artist_album ON have(Matched ASC, ArtistName COLLATE NOCASE ASC, AlbumTitle COLLATE NOCASE ASC)') + """CREATE INDEX IF NOT EXISTS have_matched_artist_album ON have(Matched ASC, ArtistName COLLATE NOCASE ASC, AlbumTitle COLLATE NOCASE ASC)""") c.execute('DROP INDEX IF EXISTS have_matched') try: