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

AlbumTrack: Make media_id a UNIQUE field

parent edcfba3a
......@@ -95,7 +95,7 @@ void AlbumTrack::createTable( sqlite::Connection* dbConnection )
{
const std::string req = "CREATE TABLE IF NOT EXISTS " + policy::AlbumTrackTable::Name + "("
"id_track INTEGER PRIMARY KEY AUTOINCREMENT,"
"media_id INTEGER,"
"media_id INTEGER UNIQUE,"
"duration INTEGER NOT NULL,"
"artist_id UNSIGNED INTEGER,"
"genre_id INTEGER,"
......
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