Adam Warner
|
c944f6a320
|
Add a new migration script to fix the previous one
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2019-12-29 23:32:31 +00:00 |
|
Adam Warner
|
aa4c0ff329
|
Don't create trigger with duplicate name until after old table is deleted
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2019-12-29 20:35:11 +00:00 |
|
DL6ER
|
eda7f40fef
|
Reinstall trigger that prevents group zero from being deleted.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-20 00:42:59 +00:00 |
|
DL6ER
|
e589e665a7
|
Also add date_added and date_modified fields to group table.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-20 00:21:25 +00:00 |
|
DL6ER
|
b32b5ad6e9
|
Update gravity database to version 8. This enforces uniqueness on the group name.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-20 00:09:10 +00:00 |
|
DL6ER
|
a720fe1789
|
Add client trigger.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-12 22:49:21 +00:00 |
|
DL6ER
|
f0439c8d12
|
Add special group zero to gravity database.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-12 16:39:02 +00:00 |
|
DL6ER
|
f482156cca
|
Merge branch 'development' into new/internal-blocking
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-09 16:49:16 +00:00 |
|
DL6ER
|
185319d560
|
Unite four domain tables into a single domainlist table.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-11-30 12:33:51 +00:00 |
|
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
|
a27c7b1398
|
regex white- and blacklist views need to be re-created as well as we need the ID for storing internally whether or not we try to match a given regex for a specific client.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-09-18 20:58:44 +02:00 |
|
DL6ER
|
7b48431917
|
Add client_by_group table like we have for the other lists. It stores associations between individual clients and list groups.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-09-09 00:03:57 +02:00 |
|
DL6ER
|
ff08add7c0
|
Update vw_whitelist and vw_blacklist to return group_id alongside domain so we can filter if the current client wants to get this domain blocked or not.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-09-07 13:01:36 +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
|
cc40c18f49
|
Wrap upgrade script commands in a transaction.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-08-22 13:54:46 +02:00 |
|
DL6ER
|
0692be9bae
|
Fix small mistake in 2->3 upgrade script.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-22 20:59:52 +02:00 |
|
DL6ER
|
96031214c6
|
Add support for whitelist regex filter management via CLI.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-22 19:36:11 +02:00 |
|
DL6ER
|
65fdbc85d5
|
Add timeout to migration script (2->3).
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-10 12:01:38 +02:00 |
|
DL6ER
|
0683842ec3
|
Fix typo in 2->3 migration script.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-08 21:43:49 +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
|
0405aaa3da
|
Review comments and fixing stickler complaints.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-06 09:32:41 +02:00 |
|
DL6ER
|
2fb4256f84
|
Rename table to "auditlist"
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:28:36 +02:00 |
|
DL6ER
|
0c8f5f1221
|
Remove comment field from audit table
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 14:06:05 +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 |
|