Commit 205fbb22 authored by Francois Cartegnie's avatar Francois Cartegnie

sql_media_library: add missing text indexes

parent 5152b380
......@@ -801,6 +801,10 @@ int CreateEmptyDatabase( media_library_t *p_ml )
if( i_ret != VLC_SUCCESS )
goto quit_createemptydatabase;
i_ret = QuerySimple( p_ml, "CREATE INDEX album_title_index ON album (title);" );
if( i_ret != VLC_SUCCESS )
goto quit_createemptydatabase;
/* Add "unknown" entry to albums */
i_ret = QuerySimple( p_ml,
"INSERT INTO album ( id, title, cover, album_artist_id ) "
......@@ -843,6 +847,10 @@ int CreateEmptyDatabase( media_library_t *p_ml )
if( i_ret != VLC_SUCCESS )
goto quit_createemptydatabase;
i_ret = QuerySimple( p_ml, "CREATE INDEX media_ui_index ON media (uri);" );
if( i_ret != VLC_SUCCESS )
goto quit_createemptydatabase;
/* People */
i_ret = QuerySimple( p_ml,
"CREATE TABLE people ( "
......
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