Add update to gravity database version 12, renaming the Unassociated group to Default group.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-05-07 17:55:35 +02:00
parent 78469ee58d
commit 7cc35d3b04
No known key found for this signature in database
GPG key ID: FB60471F0575164A
3 changed files with 28 additions and 3 deletions

View file

@ -104,4 +104,10 @@ upgrade_gravityDB(){
sqlite3 "${database}" < "${scriptPath}/10_to_11.sql"
version=11
fi
if [[ "$version" == "11" ]]; then
# Rename group 0 from "Unassociated" to "Default"
echo -e " ${INFO} Upgrading gravity database from version 11 to 12"
sqlite3 "${database}" < "${scriptPath}/11_to_12.sql"
version=12
fi
}