mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[db] Make I_FNAME index case insensitive and search fname using COLLATE NOCASE
Also some cleaning up
This commit is contained in:
@@ -294,7 +294,7 @@ static const struct db_init_query db_init_table_queries[] =
|
||||
"CREATE INDEX IF NOT EXISTS idx_rescan ON files(path, db_timestamp);"
|
||||
|
||||
#define I_FNAME \
|
||||
"CREATE INDEX IF NOT EXISTS idx_fname ON files(disabled, fname);"
|
||||
"CREATE INDEX IF NOT EXISTS idx_fname ON files(disabled, fname COLLATE NOCASE);"
|
||||
|
||||
#define I_SONGARTISTID \
|
||||
"CREATE INDEX IF NOT EXISTS idx_sari ON files(songartistid);"
|
||||
|
||||
Reference in New Issue
Block a user