diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-05 02:00:19 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2019-11-25 13:13:18 +0100 |
commit | 981e126686e1e3e05192b8d34b95be4935dfb8f0 (patch) | |
tree | 7910561e17d5d9184404708821004e941830a5c1 /tests | |
parent | 7143f3a0cbf06a381651450335ac791da714db5a (diff) |
db upgrade: remove some code dup
Instead of a switch() for each version number with identical switch cases
except for the function name, use an array of function pointers and loop.
Also print a success message after each individual version upgrade, instead of
only one in the end (see change in db_upgrade_test.ok).
Change-Id: I1736af3d9a3f02e29db836966ac15ce49f94737b
Diffstat (limited to 'tests')
-rw-r--r-- | tests/db_upgrade/db_upgrade_test.ok | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/db_upgrade/db_upgrade_test.ok b/tests/db_upgrade/db_upgrade_test.ok index c1f0f9d..49e7151 100644 --- a/tests/db_upgrade/db_upgrade_test.ok +++ b/tests/db_upgrade/db_upgrade_test.ok @@ -80,6 +80,8 @@ rc = 0 DMAIN hlr starting DDB using database: <PATH>test.db DDB Database <PATH>test.db' has HLR DB schema version 0 +DDB Database <PATH>test.db' has been upgraded to HLR DB schema version 1 +DDB Database <PATH>test.db' has been upgraded to HLR DB schema version 2 DDB Database <PATH>test.db' has been upgraded to HLR DB schema version 3 DMAIN Cmdline option --db-check: Database was opened successfully, quitting. |