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>
pull/3036/head
DL6ER 5 years ago
parent ff08add7c0
commit 7b48431917
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

@ -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';

Loading…
Cancel
Save