Bump db version to 12 to force a full rescan

This commit is contained in:
Ron Pedde 2006-08-20 05:02:27 +00:00
parent 231017d571
commit 4163e62934
3 changed files with 7 additions and 4 deletions

View File

@ -65,7 +65,7 @@ static char *db_sqlite2_enum_query;
static char db_sqlite2_path[PATH_MAX + 1];
#define DB_SQLITE2_VERSION 11
#define DB_SQLITE2_VERSION 12
/* Forwards */
@ -475,7 +475,7 @@ char *db_sqlite2_initial1 =
" subterm VARCHAR(255) DEFAULT NULL,\n"
" value VARCHAR(1024) NOT NULL\n"
");\n"
"insert into config values ('version','','11');\n";
"insert into config values ('version','','12');\n";
char *db_sqlite2_initial2 =
"create table playlists (\n"

View File

@ -67,7 +67,7 @@ static char **db_sqlite3_row = NULL;
static char db_sqlite3_path[PATH_MAX + 1];
#define DB_SQLITE3_VERSION 11
#define DB_SQLITE3_VERSION 12
/* Forwards */
@ -514,7 +514,7 @@ char *db_sqlite3_initial1 =
" subterm VARCHAR(255) DEFAULT NULL,\n"
" value VARCHAR(1024) NOT NULL\n"
");\n"
"insert into config values ('version','','11');\n";
"insert into config values ('version','','12');\n";
char *db_sqlite3_initial2 =
"create table playlists (\n"

View File

@ -358,5 +358,8 @@ char *db_sqlite_updates[] = {
"drop index idx_playlistid;\n"
"create index idx_playlistid on playlistitems(playlistid,songid);\n"
"update config set value=11 where term='version';\n",
/* version 11 -> version 12 */
"REPLACE INTO config VALUES('rescan',NULL,1);\n"
"UPDATE config SET value=12 WHERE term='version';\n",
NULL /* No more versions! */
};