mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-25 16:50:14 +00:00
Upgrade database if necessary and store audit domains therein.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
1dbe6c83c3
commit
4f4a12bb40
2 changed files with 40 additions and 18 deletions
|
@ -11,8 +11,8 @@
|
|||
# Please see LICENSE file for your rights under this license.
|
||||
|
||||
upgrade_gravityDB(){
|
||||
version=$(sqlite3 "$1" "SELECT "value" FROM "info" WHERE "property" = 'version';")
|
||||
echo $version
|
||||
local version=$(sqlite3 "$1" "SELECT "value" FROM "info" WHERE "property" = 'version';")
|
||||
|
||||
case "$version" in
|
||||
1)
|
||||
sqlite3 "$1" < "/etc/.pihole/advanced/Scripts/database_migration/gravity/1_to_2.sql"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue