Commit d22ae9f5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Match artist & albums in a case insentitive way

parent 8cb75c90
......@@ -242,7 +242,7 @@ bool Album::createTable(DBConnection dbConnection )
policy::AlbumTable::Name +
"("
"id_album INTEGER PRIMARY KEY AUTOINCREMENT,"
"title TEXT,"
"title TEXT COLLATE NOCASE,"
"artist_id UNSIGNED INTEGER,"
"release_year UNSIGNED INTEGER,"
"short_summary TEXT,"
......
......@@ -166,7 +166,7 @@ bool Artist::createTable( DBConnection dbConnection )
policy::ArtistTable::Name +
"("
"id_artist INTEGER PRIMARY KEY AUTOINCREMENT,"
"name TEXT UNIQUE ON CONFLICT FAIL,"
"name TEXT COLLATE NOCASE UNIQUE ON CONFLICT FAIL,"
"shortbio TEXT,"
"artwork_url TEXT,"
"nb_albums UNSIGNED INT DEFAULT 0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment