Updated Photos version 5 database (markdown)

Rhet Turnbull
2020-10-31 08:40:56 -07:00
parent 4295309a72
commit 872b231bff

@@ -106,6 +106,19 @@ ZINVITEEHASHEDPERSONID = ?
LIMIT 1
```
### Dates
For photos, various dates can be found in the following columns:
- `ZGENERICASSET.ZMODIFICATIONDATE`: on initial import = file modification date
- `ZGENERICASSET.ZDATECREATED`: EXIF Create Date
- `ZGENERICASSET.ZADJUSTMENTTIMESTAMP`: blank on import, even if EXIF Modify Date is set
If adjustment made, `ZHASADJUSTMENTS` set to 1 and `ZADJUSTMENTTIMESTAMP` set to time of edit and `ZMODIFICATIONDATE` updated to a time close to, but not exactly the same as `ZADJUSTMENTTIMESTAMP` (in my tests, a few seconds after `ZADJUSTMENTTIMESTAMP`)
Photos modifies `ZMODIFICATIONDATE` even for photos that have not been edited. This may be the time any data about the Photo was modified by Photos or even photoanalysisd.
On export, Photos does not set the EXIF modify date.
**TODO** Document the following