mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-27 06:49:51 +00:00
09c4c88a6d
Signed-off-by: DL6ER <dl6er@dl6er.de>
13 lines
478 B
Text
13 lines
478 B
Text
CREATE TABLE whitelist (domain TEXT UNIQUE NOT NULL, comment TEXT, DateAdded DATETIME);
|
|
|
|
CREATE TABLE blacklist (domain TEXT UNIQUE NOT NULL, comment TEXT, DateAdded DATETIME);
|
|
|
|
CREATE TABLE gravity (domain TEXT UNIQUE NOT NULL);
|
|
|
|
CREATE VIEW vw_gravity AS SELECT DISTINCT a.domain
|
|
FROM gravity a
|
|
WHERE a.domain NOT IN (SELECT domain from whitelist);
|
|
|
|
CREATE VIEW vw_blacklist AS SELECT DISTINCT a.domain
|
|
FROM blacklist a
|
|
WHERE a.domain NOT IN (SELECT domain from whitelist);
|