mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
[db] Fixup fixup in commit #00de0a3 (upgrade dbvers to 21.3)
Forgot to include db_upgrade to v21.3
This commit is contained in:
parent
bdc630baca
commit
248f82f3c8
@ -238,7 +238,7 @@ static struct artwork_source artwork_item_source[] =
|
||||
{
|
||||
.name = "embedded",
|
||||
.handler = source_item_embedded_get,
|
||||
.data_kinds = (1 << DATA_KIND_FILE),
|
||||
.data_kinds = (1 << DATA_KIND_FILE) | (1 << DATA_KIND_HTTP),
|
||||
.cache = ON_SUCCESS | ON_FAILURE,
|
||||
},
|
||||
{
|
||||
|
@ -1036,6 +1036,19 @@ static const struct db_upgrade_query db_upgrade_v2102_queries[] =
|
||||
{ U_v2102_SCVER_MINOR, "set schema_version_minor to 02" },
|
||||
};
|
||||
|
||||
#define U_V2103_SCVER_MAJOR \
|
||||
"UPDATE admin SET value = '21' WHERE key = 'schema_version_major';"
|
||||
#define U_V2103_SCVER_MINOR \
|
||||
"UPDATE admin SET value = '03' WHERE key = 'schema_version_minor';"
|
||||
|
||||
// This upgrade just changes triggers (will be done automatically by db_drop...)
|
||||
static const struct db_upgrade_query db_upgrade_v2103_queries[] =
|
||||
{
|
||||
{ U_V2103_SCVER_MAJOR, "set schema_version_major to 21" },
|
||||
{ U_V2103_SCVER_MINOR, "set schema_version_minor to 03" },
|
||||
};
|
||||
|
||||
|
||||
|
||||
int
|
||||
db_upgrade(sqlite3 *hdl, int db_ver)
|
||||
@ -1195,6 +1208,13 @@ db_upgrade(sqlite3 *hdl, int db_ver)
|
||||
|
||||
case 2101:
|
||||
ret = db_generic_upgrade(hdl, db_upgrade_v2102_queries, ARRAY_SIZE(db_upgrade_v2102_queries));
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case 2102:
|
||||
ret = db_generic_upgrade(hdl, db_upgrade_v2103_queries, ARRAY_SIZE(db_upgrade_v2103_queries));
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user