Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
8ef76c00
Commit
8ef76c00
authored
Jan 04, 2016
by
Hugo Beauzée-Luyssen
Browse files
Album: artist_id is a foreign key
parent
a2da976e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Album.cpp
View file @
8ef76c00
...
...
@@ -239,7 +239,9 @@ bool Album::createTable(DBConnection dbConnection )
"artwork_mrl TEXT,"
"last_sync_date UNSIGNED INTEGER,"
"nb_tracks UNSIGNED INTEGER DEFAULT 0,"
"is_present BOOLEAN NOT NULL DEFAULT 1"
"is_present BOOLEAN NOT NULL DEFAULT 1,"
"FOREIGN KEY( artist_id ) REFERENCES "
+
policy
::
ArtistTable
::
Name
+
"(id_artist) ON DELETE CASCADE"
")"
;
static
const
std
::
string
reqRel
=
"CREATE TABLE IF NOT EXISTS AlbumArtistRelation("
"id_album INTEGER,"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment