From 1a23e0ca1927ad9712f42d86fff998d0f62bc39e Mon Sep 17 00:00:00 2001 From: Michael Hohmuth Date: Sun, 27 Feb 2011 20:25:11 +0000 Subject: 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 --- apps/tagcache.c | 2 +- apps/tagcache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/tagcache.c b/apps/tagcache.c index 6dfc88bba4..42ef2d3ef0 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -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; diff --git a/apps/tagcache.h b/apps/tagcache.h index 8c09063fb9..59f8b8bc9a 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h @@ -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, -- cgit v1.2.3