1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Add client_by_group table like we have for the other lists. It stores associations between individual clients and list groups.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-09-09 00:03:57 +02:00
parent ff08add7c0
commit 7b48431917
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

View File

@ -38,8 +38,15 @@ CREATE VIEW vw_blacklist AS SELECT domain, blacklist_by_group.group_id AS group_
CREATE TABLE client
(
ip TEXT NOL NULL PRIMARY KEY,
"groups" TEXT NOT NULL
id INTEGER PRIMARY KEY AUTOINCREMENT,
ip TEXT NOL NULL UNIQUE
);
CREATE TABLE client_by_group
(
client_id INTEGER NOT NULL REFERENCES client (id),
group_id INTEGER NOT NULL REFERENCES "group" (id),
PRIMARY KEY (client_id, group_id)
);
UPDATE info SET value = 4 WHERE property = 'version';