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:
Allen Houchins 2026-03-21 21:30:49 -05:00 committed by GitHub
parent 25c221d5ce
commit a308b2f838
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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