Commit 8b19e109 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

AudioTrack: Fix table UNIQUE constraint

parent 29692e69
......@@ -79,7 +79,7 @@ bool AudioTrack::createTable( DBConnection dbConnection )
"bitrate UNSIGNED INTEGER,"
"samplerate UNSIGNED INTEGER,"
"nb_channels UNSIGNED INTEGER,"
"UNIQUE ( codec, bitrate ) ON CONFLICT FAIL"
"UNIQUE ( codec, bitrate, samplerate, nb_channels ) ON CONFLICT FAIL"
")";
return sqlite::Tools::executeRequest( dbConnection, req );
}
......
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