[db] Add missing declarations of media_kind column in commit 40c7522 (fixes issue #836)

This commit is contained in:
ejurgensen 2019-11-03 00:16:20 +01:00
parent a4f9bb576d
commit 6f3c315dfc
2 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,7 @@ static const struct col_type_map pli_cols_map[] =
{ "directory_id", pli_offsetof(directory_id), DB_TYPE_INT }, { "directory_id", pli_offsetof(directory_id), DB_TYPE_INT },
{ "query_order", pli_offsetof(query_order), DB_TYPE_STRING, DB_FIXUP_NO_SANITIZE }, { "query_order", pli_offsetof(query_order), DB_TYPE_STRING, DB_FIXUP_NO_SANITIZE },
{ "query_limit", pli_offsetof(query_limit), DB_TYPE_INT }, { "query_limit", pli_offsetof(query_limit), DB_TYPE_INT },
{ "media_kind", pli_offsetof(media_kind), DB_TYPE_INT },
// Not in the database, but returned via the query's COUNT()/SUM() // Not in the database, but returned via the query's COUNT()/SUM()
{ "items", pli_offsetof(items), DB_TYPE_INT }, { "items", pli_offsetof(items), DB_TYPE_INT },
@ -371,6 +372,7 @@ static const ssize_t dbpli_cols_map[] =
dbpli_offsetof(directory_id), dbpli_offsetof(directory_id),
dbpli_offsetof(query_order), dbpli_offsetof(query_order),
dbpli_offsetof(query_limit), dbpli_offsetof(query_limit),
dbpli_offsetof(media_kind),
dbpli_offsetof(items), dbpli_offsetof(items),
dbpli_offsetof(streams), dbpli_offsetof(streams),

View File

@ -250,6 +250,7 @@ struct playlist_info {
uint32_t directory_id; /* Id of directory */ uint32_t directory_id; /* Id of directory */
char *query_order; /* order by clause if it is a smart playlist */ char *query_order; /* order by clause if it is a smart playlist */
int32_t query_limit; /* limit if it is a smart playlist */ int32_t query_limit; /* limit if it is a smart playlist */
uint32_t media_kind;
uint32_t items; /* number of items (mimc) */ uint32_t items; /* number of items (mimc) */
uint32_t streams; /* number of internet streams */ uint32_t streams; /* number of internet streams */
}; };
@ -271,6 +272,7 @@ struct db_playlist_info {
char *directory_id; char *directory_id;
char *query_order; char *query_order;
char *query_limit; char *query_limit;
char *media_kind;
char *items; char *items;
char *streams; char *streams;
}; };