mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-19 13:50:11 +00:00
Add special group zero to gravity database.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
5457b2c6ea
commit
f0439c8d12
2 changed files with 37 additions and 0 deletions
|
@ -64,4 +64,12 @@ upgrade_gravityDB(){
|
|||
sqlite3 "${database}" < "${scriptPath}/5_to_6.sql"
|
||||
version=6
|
||||
fi
|
||||
if [[ "$version" == "6" ]]; then
|
||||
# This migration script adds a special group with ID 0
|
||||
# which is automatically associated to all clients not
|
||||
# having their own group assignments
|
||||
echo -e " ${INFO} Upgrading gravity database from version 6 to 7"
|
||||
sqlite3 "${database}" < "${scriptPath}/6_to_7.sql"
|
||||
version=7
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue