Merge pull request #1178 from chme/fix-db-updgrade

[db] Remove break after v2103 db update and directly run update for v2104
This commit is contained in:
ejurgensen 2021-01-23 16:49:36 +01:00 committed by GitHub
commit 7004b08fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1249,7 +1249,6 @@ db_upgrade(sqlite3 *hdl, int db_ver)
ret = db_generic_upgrade(hdl, db_upgrade_v2104_queries, ARRAY_SIZE(db_upgrade_v2104_queries));
if (ret < 0)
return -1;
break;
/* FALLTHROUGH */
@ -1257,6 +1256,8 @@ db_upgrade(sqlite3 *hdl, int db_ver)
ret = db_generic_upgrade(hdl, db_upgrade_v2105_queries, ARRAY_SIZE(db_upgrade_v2105_queries));
if (ret < 0)
return -1;
/* Last case statement is the only one that ends with a break statement! */
break;
default: