Project

General

Profile

Actions

Feature #5138

closed

Automatically upgrade the database in a post-install script and create a backup

Added by osmith about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/28/2021
Due date:
% Done:

100%

Spec Reference:

Description

As discussed in the team meeting last week, for some users it makes sense to automatically upgrade the database (because osmo-hlr will refuse to start if the db was not upgraded but a new version is required) and for others it does not (just want to try out a osmo-hlr version, but be able to go back to the previous version).

The solution we arrived at:
  • post-install script, which checks if the database needs to be upgraded (exit 0 otherwise)
  • create a backup of the database
  • upgrade the database

It was discussed to do it in a pre-install instead of post-install, but that's not possible as the migration tool is only available at post-install.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)