From c003d75856de850156efc5faad14481b3ca09e99 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Thu, 13 Aug 2020 07:06:29 -0700 Subject: [PATCH] Updated Photos version 5 database (markdown) --- Photos-version-5-database.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Photos-version-5-database.md b/Photos-version-5-database.md index 06d9697..2014afd 100644 --- a/Photos-version-5-database.md +++ b/Photos-version-5-database.md @@ -49,7 +49,7 @@ See also the [discussion in #184](https://github.com/RhetTbull/osxphotos/issues/ ## Import Sessions -Import sessions are stored in `ZGENERICALBUM` with 'ZKIND = 1506`. When a photo is imported, the value ZGENERICASSET.ZIMPORTSESSION is set to the primary key of the corresponding import album in `ZGENERICALBUM`. +Import sessions are stored in `ZGENERICALBUM` with 'ZKIND = 1506`. When a photo is imported, the value ZGENERICASSET.ZIMPORTSESSION is set to the primary key of the corresponding import album in `ZGENERICALBUM`. `ZIMPORTSESSION` may be `null` meaning there is no associated import session. In Photos 5, the import order is stored in a similar manner as the discussion above on album sort order. The value in `ZGENERICASSET.Z_FOK_IMPORTSESSION` defines the sort order for an import session. In Photos 6, `ZGENERICASSET` is renamed `ZASSET` and it no longer contains the the `Z_FOK_IMPORTSESSION` column. I've not yet determined how Photos 6 stores the import order.