Review comments and fixing stickler complaints.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-07-06 09:32:41 +02:00
parent 2fb4256f84
commit 0405aaa3da
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
5 changed files with 34 additions and 17 deletions

View file

@ -11,11 +11,11 @@
# Please see LICENSE file for your rights under this license.
upgrade_gravityDB(){
local version=$(sqlite3 "$1" "SELECT "value" FROM "info" WHERE "property" = 'version';")
local version
version=$(sqlite3 "$1" "SELECT "value" FROM "info" WHERE "property" = 'version';")
case "$version" in
1)
if [[ "$version" == "1" ]]; then
sqlite3 "$1" < "/etc/.pihole/advanced/Scripts/database_migration/gravity/1_to_2.sql"
;;
esac
version=2
fi
}