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

MediaLibrary: Create the Thumbnail table early

To be able to specify the foreign key relationship on all subsequently
created tables
parent 204ce378
......@@ -144,6 +144,7 @@ void MediaLibrary::createAllTables()
Device::createTable( m_dbConnection.get() );
Folder::createTable( m_dbConnection.get() );
Thumbnail::createTable( m_dbConnection.get() );
Media::createTable( m_dbConnection.get() );
File::createTable( m_dbConnection.get() );
Label::createTable( m_dbConnection.get() );
......@@ -161,7 +162,6 @@ void MediaLibrary::createAllTables()
History::createTable( m_dbConnection.get() );
Settings::createTable( m_dbConnection.get() );
parser::Task::createTable( m_dbConnection.get() );
Thumbnail::createTable( m_dbConnection.get() );
}
void MediaLibrary::createAllTriggers()
......
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