Merge branch 'main' of https://git.schroedercity.com/kyle/kp-pihole-sync
This commit is contained in:
19
db_dump.sql
19
db_dump.sql
@@ -5,6 +5,7 @@ DROP TABLE IF EXISTS 'client_by_group';
|
|||||||
DROP TABLE IF EXISTS 'client';
|
DROP TABLE IF EXISTS 'client';
|
||||||
DROP TABLE IF EXISTS 'group';
|
DROP TABLE IF EXISTS 'group';
|
||||||
DROP TABLE IF EXISTS 'domainlist';
|
DROP TABLE IF EXISTS 'domainlist';
|
||||||
|
DROP TABLE IF EXISTS 'adlist';
|
||||||
CREATE TABLE IF NOT EXISTS "group"
|
CREATE TABLE IF NOT EXISTS "group"
|
||||||
(
|
(
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
@@ -29,6 +30,24 @@ CREATE TABLE domainlist
|
|||||||
);
|
);
|
||||||
INSERT INTO domainlist VALUES(2,3,'porn',1,1647813704,1647813704,NULL);
|
INSERT INTO domainlist VALUES(2,3,'porn',1,1647813704,1647813704,NULL);
|
||||||
INSERT INTO domainlist VALUES(4,0,'ws-goguardian.pusher.com',1,1687722407,1687722407,'Added from Query Log');
|
INSERT INTO domainlist VALUES(4,0,'ws-goguardian.pusher.com',1,1687722407,1687722407,'Added from Query Log');
|
||||||
|
CREATE TABLE adlist
|
||||||
|
(
|
||||||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
address TEXT UNIQUE NOT NULL,
|
||||||
|
enabled BOOLEAN NOT NULL DEFAULT 1,
|
||||||
|
date_added INTEGER NOT NULL DEFAULT (cast(strftime('%s', 'now') as int)),
|
||||||
|
date_modified INTEGER NOT NULL DEFAULT (cast(strftime('%s', 'now') as int)),
|
||||||
|
comment TEXT,
|
||||||
|
date_updated INTEGER,
|
||||||
|
number INTEGER NOT NULL DEFAULT 0,
|
||||||
|
invalid_domains INTEGER NOT NULL DEFAULT 0,
|
||||||
|
status INTEGER NOT NULL DEFAULT 0
|
||||||
|
);
|
||||||
|
INSERT INTO adlist VALUES(1,'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts',0,1728225653,1728234806,'Migrated from /etc/pihole/adlists.list',1728234445,116379,1,2);
|
||||||
|
INSERT INTO adlist VALUES(2,'https://v.firebog.net/hosts/static/w3kbl.txt',1,1728234516,1728234516,NULL,NULL,0,0,0);
|
||||||
|
INSERT INTO adlist VALUES(3,'https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts',0,1728234528,1728234529,NULL,NULL,0,0,0);
|
||||||
|
INSERT INTO adlist VALUES(4,'https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt',1,1728234540,1728234540,NULL,NULL,0,0,0);
|
||||||
|
INSERT INTO adlist VALUES(5,'https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/pro.txt',1,1728234546,1728234546,NULL,NULL,0,0,0);
|
||||||
CREATE TABLE domainlist_by_group
|
CREATE TABLE domainlist_by_group
|
||||||
(
|
(
|
||||||
domainlist_id INTEGER NOT NULL REFERENCES domainlist (id),
|
domainlist_id INTEGER NOT NULL REFERENCES domainlist (id),
|
||||||
|
|||||||
Reference in New Issue
Block a user