mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-16 03:03:58 +00:00
633e56e8a9
Signed-off-by: DL6ER <dl6er@dl6er.de>
29 lines
688 B
SQL
29 lines
688 B
SQL
.timeout 30000
|
|
|
|
PRAGMA FOREIGN_KEYS=OFF;
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
DROP TABLE IF EXISTS whitelist;
|
|
DROP TABLE IF EXISTS blacklist;
|
|
DROP TABLE IF EXISTS regex_whitelist;
|
|
DROP TABLE IF EXISTS regex_blacklist;
|
|
|
|
CREATE TRIGGER tr_domainlist_delete AFTER DELETE ON domainlist
|
|
BEGIN
|
|
DELETE FROM domainlist_by_group WHERE domainlist_id = OLD.id;
|
|
END;
|
|
|
|
CREATE TRIGGER tr_adlist_delete AFTER DELETE ON adlist
|
|
BEGIN
|
|
DELETE FROM adlist_by_group WHERE adlist_id = OLD.id;
|
|
END;
|
|
|
|
CREATE TRIGGER tr_client_delete AFTER DELETE ON client
|
|
BEGIN
|
|
DELETE FROM client_by_group WHERE client_id = OLD.id;
|
|
END;
|
|
|
|
UPDATE info SET value = 10 WHERE property = 'version';
|
|
|
|
COMMIT;
|