aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/git-version-gen
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2016-05-13 15:38:09 +0600
committerHolger Freyther <holger@freyther.de>2016-05-15 19:31:18 +0000
commita8d8e93086580904aded88ffb957a6e7e3660cbe (patch)
tree7fe18971953685fcbba7885d86c4706f78a43281 /openbsc/git-version-gen
parent34e2b0927801463fc3dbb5d8f9eec3ae01f9501d (diff)
db.c: implemented incremental migration
In the past, normal migration was possible only if the actual schema version differed from the version used in DB by 1. For example, if DB uses an old version 3 and you need to use it with the code written for version 5, the check_db_revision() will convert it to 4 and DB will still use incompatible schema version during Osmo-NITB running time. After next run it will be converted to version 5. This patch replaces a set of 'else-if' checks by a 'switch' without 'break' statements between 'case' labels (waterfall). It makes you able to migrate from current version to the latest despite any difference between them. Change-Id: Ia9c2aa86f96b88ad8a710d0a23879ce219bc82dc Reviewed-on: https://gerrit.osmocom.org/62 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
Diffstat (limited to 'openbsc/git-version-gen')
0 files changed, 0 insertions, 0 deletions