mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-27 07:12:27 +00:00
d2828310f2
Signed-off-by: DL6ER <dl6er@dl6er.de>
27 lines
647 B
SQL
27 lines
647 B
SQL
.timeout 30000
|
|
|
|
PRAGMA FOREIGN_KEYS=OFF;
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
DROP TRIGGER tr_domainlist_delete;
|
|
CREATE TRIGGER tr_domainlist_delete BEFORE DELETE ON domainlist
|
|
BEGIN
|
|
DELETE FROM domainlist_by_group WHERE domainlist_id = OLD.id;
|
|
END;
|
|
|
|
DROP TRIGGER tr_adlist_delete;
|
|
CREATE TRIGGER tr_adlist_delete BEFORE DELETE ON adlist
|
|
BEGIN
|
|
DELETE FROM adlist_by_group WHERE adlist_id = OLD.id;
|
|
END;
|
|
|
|
DROP TRIGGER tr_client_delete;
|
|
CREATE TRIGGER tr_client_delete BEFORE DELETE ON client
|
|
BEGIN
|
|
DELETE FROM client_by_group WHERE client_id = OLD.id;
|
|
END;
|
|
|
|
UPDATE info SET value = 19 WHERE property = 'version';
|
|
|
|
COMMIT;
|