mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-12-24 20:35:28 +00:00
Add a new migration script to fix the previous one
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -80,4 +80,11 @@ upgrade_gravityDB(){
|
||||
sqlite3 "${database}" < "${scriptPath}/7_to_8.sql"
|
||||
version=8
|
||||
fi
|
||||
if [[ "$version" == "8" ]]; then
|
||||
# This migration fixes some issues that were introduced
|
||||
# in the previous migration script.
|
||||
echo -e " ${INFO} Upgrading gravity database from version 8 to 9"
|
||||
sqlite3 "${database}" < "${scriptPath}/8_to_9.sql"
|
||||
version=9
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user