Page:
Photos version 4 database
Pages
Changes in Photos 6 Big Sur
Database changes from 16.0 to 16.0.1
Developer Tools
Home
Logs of shared images
Machine Learning Photo Classification in Photos 5
Motivation for this project
Photos 4 database schema
Photos 5 database schema
Photos 6 database schema (Big Sur)
Photos 6 to Photos 7 Diff (Big Sur to Monterey 12.0.1)
Photos 7 (Monterey) Schema
Photos 7 to Photos 8 (Monterey to Ventura developer preview) Diff
Photos 7 to Photos 8 diff
Photos 8 Ventura 13.0 dev preview to Ventura 13.0.0 release diff
Photos 8 schema (Ventura MacOS 13.0 developer preview)
Photos 8 schema (Ventura MacOS 13.0.0)
Photos 8 to Photos 9 schema diff (Ventura to Sonoma)
Photos 9 (Sonoma) schema
Photos Behavior
Photos search data (psi.sqlite) diff Monterey to Ventura
Photos version 4 database
Photos version 5 database
Related projects
Schema changes from Photos 2 to Photos 3
Schema changes from Photos 3 to Photos 4
Schema changes from Photos 5 to Photos 6
Setting up a new development environment
Steps to create sql diff of two database versions
Structure of the code
Understanding the Photos database
iPhoto DataModelVersion.plist format
iPhoto database schema
psi.sqlite (search database) changes from Photos 5 to Photos 6
psi.sqlite schema (Photos 5)
psi.sqlite schema (Photos 6)
psi.sqlite schema (Photos 7, Monterey, macOS 12.0.1)
psi.sqlite schema (Photos 8, Ventura, macOS 13.0)
Clone
3
Photos version 4 database
Rhet Turnbull edited this page 2020-07-06 07:34:47 -07:00
Table of Contents
The full schema for Photos 4 databases can be found here.
Albums
Album Sort Order
Sort order of photos in albums is not yet supported by osxphotos. The sort order appears to be in table RKCustomSortOrder.
The highlighted rows in screenshot below show 4 photos in an album with default sort order. Note the orderNumber column uses a similar scheme as in Catalina (start at 1024 and increment by 2^10). containerUuid is the album UUID (RKAlbum.uuid) and objectUuid is the photo UUID (RKVersion.uuid).
In screenshot below, I manually re-sorted the images, moving the second to last image (uuid = 6bxcNnzRQKGnK4uPrCJ9UQ) to the beginning of the album. Note it's orderNumber changed from 3072 to 1536, placing it first in the album.