mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Fix extra space in front on END statement in CREATE TRIGGER commands
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
487718512d
commit
d5781fb110
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ CREATE VIEW vw_whitelist AS SELECT a.domain
|
||||||
CREATE TRIGGER tr_whitelist_update AFTER UPDATE ON whitelist
|
CREATE TRIGGER tr_whitelist_update AFTER UPDATE ON whitelist
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE whitelist SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE domain = NEW.domain;
|
UPDATE whitelist SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE domain = NEW.domain;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
CREATE VIEW vw_blacklist AS SELECT a.domain
|
CREATE VIEW vw_blacklist AS SELECT a.domain
|
||||||
FROM blacklist a
|
FROM blacklist a
|
||||||
|
@ -25,7 +25,7 @@ CREATE VIEW vw_blacklist AS SELECT a.domain
|
||||||
CREATE TRIGGER tr_blacklist_update AFTER UPDATE ON blacklist
|
CREATE TRIGGER tr_blacklist_update AFTER UPDATE ON blacklist
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE blacklist SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE domain = NEW.domain;
|
UPDATE blacklist SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE domain = NEW.domain;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
CREATE VIEW vw_regex AS SELECT a.domain
|
CREATE VIEW vw_regex AS SELECT a.domain
|
||||||
FROM regex a
|
FROM regex a
|
||||||
|
@ -33,7 +33,7 @@ CREATE VIEW vw_regex AS SELECT a.domain
|
||||||
CREATE TRIGGER tr_regex_update AFTER UPDATE ON regex
|
CREATE TRIGGER tr_regex_update AFTER UPDATE ON regex
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE regex SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE domain = NEW.domain;
|
UPDATE regex SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE domain = NEW.domain;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
CREATE VIEW vw_adlists AS SELECT a.address
|
CREATE VIEW vw_adlists AS SELECT a.address
|
||||||
FROM adlists a
|
FROM adlists a
|
||||||
|
@ -41,5 +41,5 @@ CREATE VIEW vw_adlists AS SELECT a.address
|
||||||
CREATE TRIGGER tr_adlists_update AFTER UPDATE ON adlists
|
CREATE TRIGGER tr_adlists_update AFTER UPDATE ON adlists
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE adlists SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE address = NEW.address;
|
UPDATE adlists SET date_modified = (cast(strftime('%s', 'now') as int)) WHERE address = NEW.address;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue