mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Tiny SQL style fixup
This commit is contained in:
parent
e226bdbf89
commit
1efce33070
@ -27,8 +27,8 @@ CREATE INDEX idx_peers_phone_number ON peers (phone_number);
|
|||||||
CREATE TRIGGER trg_peers_last_update_on
|
CREATE TRIGGER trg_peers_last_update_on
|
||||||
AFTER UPDATE
|
AFTER UPDATE
|
||||||
ON peers
|
ON peers
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE peers
|
UPDATE peers
|
||||||
SET last_update_on = CAST(STRFTIME('%s', 'now') AS INTEGER)
|
SET last_update_on = CAST(STRFTIME('%s', 'now') AS INTEGER)
|
||||||
WHERE id = NEW.id;
|
WHERE id = NEW.id;
|
||||||
END;
|
END;
|
Loading…
x
Reference in New Issue
Block a user