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

Album: is_present is now an unsigned

Even though boolean are effectively stored as int and can have values
different than 0 and 1, this makes the intent clearer
parent 207fdb8c
......@@ -433,7 +433,7 @@ void Album::createTable( sqlite::Connection* dbConnection )
"thumbnail_id UNSIGNED INT,"
"nb_tracks UNSIGNED INTEGER DEFAULT 0,"
"duration UNSIGNED INTEGER NOT NULL DEFAULT 0,"
"is_present BOOLEAN NOT NULL DEFAULT 0,"
"is_present UNSIGNED INTEGER NOT NULL DEFAULT 0,"
"FOREIGN KEY( artist_id ) REFERENCES " + Artist::Table::Name
+ "(id_artist) ON DELETE CASCADE,"
"FOREIGN KEY(thumbnail_id) REFERENCES " + Thumbnail::Table::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