mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-26 06:40:17 +00:00
12b9748c43
Signed-off-by: DL6ER <dl6er@dl6er.de>
18 lines
No EOL
408 B
SQL
18 lines
No EOL
408 B
SQL
.timeout 30000
|
|
|
|
PRAGMA FOREIGN_KEYS=OFF;
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
ALTER TABLE adlist ADD COLUMN date_updated INTEGER;
|
|
|
|
DROP TRIGGER tr_adlist_update;
|
|
|
|
CREATE TRIGGER tr_adlist_update AFTER UPDATE OF address,enabled,comment ON adlist
|
|
BEGIN
|
|
UPDATE adlist SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE id = NEW.id;
|
|
END;
|
|
|
|
UPDATE info SET value = 13 WHERE property = 'version';
|
|
|
|
COMMIT; |