mirror of
https://github.com/ouchadam/small-talk.git
synced 2024-12-24 00:31:14 +01:00
inverting log query to see most recent first
This commit is contained in:
parent
d406586afa
commit
4e3da03062
@ -13,12 +13,14 @@ FROM dbEventLog;
|
||||
selectLatestByLog:
|
||||
SELECT id, tag, content, time(utcEpochSeconds,'unixepoch')
|
||||
FROM dbEventLog
|
||||
WHERE logParent = ?;
|
||||
WHERE logParent = ?
|
||||
ORDER BY utcEpochSeconds DESC;
|
||||
|
||||
selectLatestByLogFiltered:
|
||||
SELECT id, tag, content, time(utcEpochSeconds,'unixepoch')
|
||||
FROM dbEventLog
|
||||
WHERE logParent = ? AND tag = ?;
|
||||
WHERE logParent = ? AND tag = ?
|
||||
ORDER BY utcEpochSeconds DESC;
|
||||
|
||||
insert:
|
||||
INSERT INTO dbEventLog(tag, content, utcEpochSeconds, logParent)
|
||||
|
Loading…
Reference in New Issue
Block a user