Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
medialibrary
Commits
d5ed4951
Commit
d5ed4951
authored
Jul 06, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AlbumTrack: Index foreign keys
parent
648c5ff9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/AlbumTrack.cpp
src/AlbumTrack.cpp
+3
-1
No files found.
src/AlbumTrack.cpp
View file @
d5ed4951
...
...
@@ -111,8 +111,10 @@ void AlbumTrack::createTable( sqlite::Connection* dbConnection )
"FOREIGN KEY (album_id) REFERENCES Album(id_album) "
" ON DELETE CASCADE"
")"
;
const
std
::
string
indexAlbumIdReq
=
"CREATE INDEX IF NOT EXISTS album_track_album_genre_artist_ids "
"ON "
+
policy
::
AlbumTrackTable
::
Name
+
"(album_id, genre_id, artist_id)"
;
sqlite
::
Tools
::
executeRequest
(
dbConnection
,
req
);
sqlite
::
Tools
::
executeRequest
(
dbConnection
,
indexAlbumIdReq
);
}
void
AlbumTrack
::
createTriggers
(
sqlite
::
Connection
*
dbConnection
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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