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

AlbumTrack: Ensure id_track won't be NULL

parent 5d43a16f
......@@ -67,7 +67,7 @@ bool AlbumTrack::createTable( DBConnection dbConnection )
"FOREIGN KEY (album_id) REFERENCES Album(id_album) ON DELETE CASCADE"
")";
static const std::string reqRel = "CREATE TABLE IF NOT EXISTS TrackArtistRelation("
"id_track INTEGER,"
"id_track INTEGER NOT NULL,"
"id_artist INTEGER,"
"PRIMARY KEY (id_track, id_artist),"
"FOREIGN KEY(id_track) REFERENCES " + policy::AlbumTrackTable::Name + "("
......
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