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
63a45cc8
Commit
63a45cc8
authored
Feb 05, 2016
by
Hugo Beauzée-Luyssen
Browse files
MediaLibrary: Move a comment to the right position
parent
2586e46d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MediaLibrary.cpp
View file @
63a45cc8
...
...
@@ -113,6 +113,11 @@ MediaLibrary::~MediaLibrary()
bool
MediaLibrary
::
createAllTables
()
{
// We need to create the tables in order of triggers creation
// Device is the "root of all evil". When a device is modified,
// we will trigger an update on folder, which will trigger
// an update on files, and so on.
auto
t
=
m_dbConnection
->
newTransaction
();
auto
res
=
Device
::
createTable
(
m_dbConnection
.
get
()
)
&&
Folder
::
createTable
(
m_dbConnection
.
get
()
)
&&
...
...
@@ -156,10 +161,6 @@ bool MediaLibrary::initialize( const std::string& dbPath, const std::string& thu
m_callback
=
mlCallback
;
m_dbConnection
.
reset
(
new
SqliteConnection
(
dbPath
)
);
// We need to create the tables in order of triggers creation
// Device is the "root of all evil". When a device is modified,
// we will trigger an update on folder, which will trigger
// an update on files, and so on.
if
(
createAllTables
()
==
false
)
{
LOG_ERROR
(
"Failed to create database structure"
);
...
...
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