DL6ER
|
037d52104a
|
New command "pihole -g -r" recreates gravity.db based on files backed up in /etc/pihole/migration_update. This is useful to restore a working version of the database when the user destroyed the original database. Also, update gravity.db to version 5 because of a fix we needed to implement.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-11-26 10:58:39 +01:00 |
|
DL6ER
|
d883854aad
|
Use constant for long path.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-10-03 12:12:32 +02:00 |
|
DL6ER
|
756c99653e
|
Merge branch 'development' into new/internal-blocking
|
2019-10-03 12:01:27 +02:00 |
|
DL6ER
|
2e0370367c
|
Print when we upgrade gravity database version. This will make possibly failed upgrades easier to debug.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-09-26 14:02:20 +02:00 |
|
DL6ER
|
ffc91a6c81
|
Update view vw_gravity to only return domains from enabled adlists.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-09-07 11:17:53 +02:00 |
|
DL6ER
|
a8af2e1837
|
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>
|
2019-09-04 23:14:29 +02:00 |
|
DL6ER
|
1820c2c598
|
Merge branch 'development' into new/whitelist-regex-support
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-08-22 14:19:51 +02:00 |
|
DL6ER
|
5ff9052200
|
Review comments
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-09 11:41:44 +02:00 |
|
DL6ER
|
054c7a2c05
|
Create new table + view regex_whitelist + rename old regex table to regex_blacklist. This updates the gravity.db version to 3.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-08 21:35:31 +02:00 |
|
DL6ER
|
8382f4d727
|
Rename table to domain_audit and simplify subroutine addAudit().
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-07 21:21:56 +02:00 |
|
DL6ER
|
be3e198f9a
|
Address linting errors.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-07 10:46:20 +02:00 |
|
DL6ER
|
acc50b709e
|
Only migrate files once (domain and adlist lists druing initial creation of gravity.db auditlog.list on database upgrade from version 1 to 2.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-07 10:33:08 +02:00 |
|
DL6ER
|
efe8216445
|
Fix further stickler complaint.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-06 09:45:07 +02:00 |
|
DL6ER
|
0405aaa3da
|
Review comments and fixing stickler complaints.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-06 09:32:41 +02:00 |
|
DL6ER
|
4f4a12bb40
|
Upgrade database if necessary and store audit domains therein.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 14:03:57 +02:00 |
|
DL6ER
|
1dbe6c83c3
|
Add database upgrading mechanism for adding the audit table.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 13:54:18 +02:00 |
|