mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Update macOS 27 incompatible apps report (#42217)
Update macOS report SQL to return 'Never' for apps where a.last_opened_time = -1 instead of converting -1 to a datetime. Adds a CASE expression to show 'Never' or DATETIME(...), making the last_opened_time column clearer for apps that were never opened.
This commit is contained in:
parent
25c221d5ce
commit
a308b2f838
1 changed files with 4 additions and 1 deletions
|
|
@ -13,7 +13,10 @@
|
|||
a.bundle_identifier,
|
||||
a.bundle_short_version AS version,
|
||||
m.value AS architectures,
|
||||
DATETIME(a.last_opened_time, 'unixepoch') AS last_opened_time
|
||||
CASE WHEN a.last_opened_time = -1
|
||||
THEN 'Never'
|
||||
ELSE DATETIME(a.last_opened_time, 'unixepoch')
|
||||
END AS last_opened_time
|
||||
FROM apps a
|
||||
JOIN mdls m
|
||||
ON m.path = a.path
|
||||
|
|
|
|||
Loading…
Reference in a new issue