Make IDs of anti-/gravity lists available in vw_(anti)gravity

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-12-25 05:29:11 +01:00
parent 6e8029f69f
commit 0066c6fbff
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
4 changed files with 35 additions and 4 deletions

View file

@ -141,4 +141,10 @@ upgrade_gravityDB(){
pihole-FTL sqlite3 -ni "${database}" < "${scriptPath}/16_to_17.sql"
version=17
fi
if [[ "$version" == "17" ]]; then
# Add adlist.id to vw_gravity and vw_antigravity
echo -e " ${INFO} Upgrading gravity database from version 17 to 18"
pihole-FTL sqlite3 -ni "${database}" < "${scriptPath}/17_to_18.sql"
version=18
fi
}