Commit Graph

34 Commits (73d5902bedecba0e1ac5a5adc36c84d7fc1a233b)

Author SHA1 Message Date
Christian König 73d5902bed
Add editorconfig-checker workflow
2 years ago
Christian König b30d729aa4 Simplify vw_adlist
3 years ago
DL6ER 6b33b8b4c0
Store status of downloaded list (downloaded, using cache, some error, ...) and number of (in-)valid domains on this list in the gravity database. This updates the gravity databaes to version 14.
3 years ago
DL6ER 12b9748c43
Fine-tune adlist:adte_modified trigger and don't default new date_updated column to now but use NULL instead
4 years ago
DL6ER 4fd412d7c3
Add date_updated field in adlist table set when a list changes.
4 years ago
DL6ER 7cc35d3b04
Add update to gravity database version 12, renaming the Unassociated group to Default group.
4 years ago
DL6ER 92aa510bda
Add timestamps and comment fields to clients. This updates the gravity database to version 11.
4 years ago
DL6ER 633e56e8a9
Add gravity database 9->10 update script.
4 years ago
DL6ER bb30c818ab
Update database version during migration.
4 years ago
Adam Warner c944f6a320
Add a new migration script to fix the previous one
4 years ago
Adam Warner aa4c0ff329
Don't create trigger with duplicate name until after old table is deleted
4 years ago
DL6ER eda7f40fef
Reinstall trigger that prevents group zero from being deleted.
4 years ago
DL6ER e589e665a7
Also add date_added and date_modified fields to group table.
4 years ago
DL6ER b32b5ad6e9
Update gravity database to version 8. This enforces uniqueness on the group name.
4 years ago
DL6ER a720fe1789
Add client trigger.
5 years ago
DL6ER f0439c8d12
Add special group zero to gravity database.
5 years ago
DL6ER f482156cca
Merge branch 'development' into new/internal-blocking
5 years ago
DL6ER 185319d560
Unite four domain tables into a single domainlist table.
5 years ago
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.
5 years ago
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.
5 years ago
DL6ER 7b48431917
Add client_by_group table like we have for the other lists. It stores associations between individual clients and list groups.
5 years ago
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.
5 years ago
DL6ER ffc91a6c81
Update view vw_gravity to only return domains from enabled adlists.
5 years ago
DL6ER cc40c18f49
Wrap upgrade script commands in a transaction.
5 years ago
DL6ER 0692be9bae
Fix small mistake in 2->3 upgrade script.
5 years ago
DL6ER 96031214c6
Add support for whitelist regex filter management via CLI.
5 years ago
DL6ER 65fdbc85d5
Add timeout to migration script (2->3).
5 years ago
DL6ER 0683842ec3
Fix typo in 2->3 migration script.
5 years ago
DL6ER 054c7a2c05
Create new table + view regex_whitelist + rename old regex table to regex_blacklist. This updates the gravity.db version to 3.
5 years ago
DL6ER 8382f4d727
Rename table to domain_audit and simplify subroutine addAudit().
5 years ago
DL6ER 0405aaa3da
Review comments and fixing stickler complaints.
5 years ago
DL6ER 2fb4256f84
Rename table to "auditlist"
5 years ago
DL6ER 0c8f5f1221
Remove comment field from audit table
5 years ago
DL6ER 1dbe6c83c3
Add database upgrading mechanism for adding the audit table.
5 years ago