Project

General

Profile

Feature #5138

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

Added by osmith 18 days ago. Updated 18 days ago.

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

0%

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.

History

#1 Updated by osmith 18 days ago

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)