Fix database import and export

Correct an omission that happened when the DB schema was changed last
time.  Add a comment to enum tag_type to prevent this from happening
in the future.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29435 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Hohmuth 2011-02-27 20:25:11 +00:00
parent 0facf23e14
commit 1a23e0ca19
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@ static long tempbuf_pos;
static const char *tags_str[] = { "artist", "album", "genre", "title",
"filename", "composer", "comment", "albumartist", "grouping", "year",
"discnumber", "tracknumber", "bitrate", "length", "playcount", "rating",
"playtime", "lastplayed", "commitid", "mtime" };
"playtime", "lastplayed", "commitid", "mtime", "lastoffset" };
/* Status information of the tagcache. */
static struct tagcache_stat tc_stat;

View file

@ -26,7 +26,7 @@
#include "metadata.h"
/**
Note: When adding new tags, make sure to update index_entry_ec in
Note: When adding new tags, make sure to update index_entry_ec and tags_str in
tagcache.c and bump up the header version too.
*/
enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,