mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-24 12:30:38 -04:00
Bump db version to 12 to force a full rescan
This commit is contained in:
parent
231017d571
commit
4163e62934
@ -65,7 +65,7 @@ static char *db_sqlite2_enum_query;
|
|||||||
|
|
||||||
static char db_sqlite2_path[PATH_MAX + 1];
|
static char db_sqlite2_path[PATH_MAX + 1];
|
||||||
|
|
||||||
#define DB_SQLITE2_VERSION 11
|
#define DB_SQLITE2_VERSION 12
|
||||||
|
|
||||||
|
|
||||||
/* Forwards */
|
/* Forwards */
|
||||||
@ -475,7 +475,7 @@ char *db_sqlite2_initial1 =
|
|||||||
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
||||||
" value VARCHAR(1024) NOT NULL\n"
|
" value VARCHAR(1024) NOT NULL\n"
|
||||||
");\n"
|
");\n"
|
||||||
"insert into config values ('version','','11');\n";
|
"insert into config values ('version','','12');\n";
|
||||||
|
|
||||||
char *db_sqlite2_initial2 =
|
char *db_sqlite2_initial2 =
|
||||||
"create table playlists (\n"
|
"create table playlists (\n"
|
||||||
|
@ -67,7 +67,7 @@ static char **db_sqlite3_row = NULL;
|
|||||||
|
|
||||||
static char db_sqlite3_path[PATH_MAX + 1];
|
static char db_sqlite3_path[PATH_MAX + 1];
|
||||||
|
|
||||||
#define DB_SQLITE3_VERSION 11
|
#define DB_SQLITE3_VERSION 12
|
||||||
|
|
||||||
|
|
||||||
/* Forwards */
|
/* Forwards */
|
||||||
@ -514,7 +514,7 @@ char *db_sqlite3_initial1 =
|
|||||||
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
||||||
" value VARCHAR(1024) NOT NULL\n"
|
" value VARCHAR(1024) NOT NULL\n"
|
||||||
");\n"
|
");\n"
|
||||||
"insert into config values ('version','','11');\n";
|
"insert into config values ('version','','12');\n";
|
||||||
|
|
||||||
char *db_sqlite3_initial2 =
|
char *db_sqlite3_initial2 =
|
||||||
"create table playlists (\n"
|
"create table playlists (\n"
|
||||||
|
@ -358,5 +358,8 @@ char *db_sqlite_updates[] = {
|
|||||||
"drop index idx_playlistid;\n"
|
"drop index idx_playlistid;\n"
|
||||||
"create index idx_playlistid on playlistitems(playlistid,songid);\n"
|
"create index idx_playlistid on playlistitems(playlistid,songid);\n"
|
||||||
"update config set value=11 where term='version';\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! */
|
NULL /* No more versions! */
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user