Store domains without sorting and unifying them first. This allows us to preserve the relationship of the individual domains to the lists they came from.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-09-04 23:14:29 +02:00
parent ab90ff565a
commit a8af2e1837
No known key found for this signature in database
GPG key ID: FB60471F0575164A
2 changed files with 86 additions and 113 deletions

View file

@ -39,4 +39,9 @@ upgrade_gravityDB(){
sqlite3 "${database}" < "/etc/.pihole/advanced/Scripts/database_migration/gravity/2_to_3.sql"
version=3
fi
if [[ "$version" == "3" ]]; then
# This migration script upgrades ...
sqlite3 "${database}" < "/etc/.pihole/advanced/Scripts/database_migration/gravity/3_to_4.sql"
version=3
fi
}