An open API service indexing awesome lists of open source software.

https://github.com/dominicmaas/luminar-catalog-transfer

Transfer edits from one luminar catalog to another
https://github.com/dominicmaas/luminar-catalog-transfer

luminar

Last synced: 8 months ago
JSON representation

Transfer edits from one luminar catalog to another

Awesome Lists containing this project

README

          

# Luminar Catalog Transfer
Transfer edits from one luminar catalog to another

**Notes:**

- This transfer matches based on the stored filename within the luminar catalog. Ensure your filenames match correctly)
- **!!! Please backup your .luminar file before running this script !!!**

## Usage

todo, but something like `name {path/to/source/catalog} {path/to/destionation/catalog}`

## Read Steps

1. Read source catalog
2. Select * on `source.img_history_states`
3. group on `source.image_history_state_proxy` (`image_history_state_proxy._state_id_int_64` <--> `img_history_states._id_int_64`
4. Match on `images._id_int_64` (`images.` <--> `image_history_state_proxy._image_id_int_64`)

## Import Steps

1. Read destination catalog
2. Find matching source catalog images with destionation images (using `images.path_wide_ch`)
3. Insert `img_history_states` (keeping track of new inserted ids)
4. Write proxy matchup within `image_history_state_proxy` between new image id and new history state id

## Unknowns

There is a `resources` match (`img_history_state_resources` and `resources`), unsure if this is important. there are hardcoded links to the cache folder that I cannot use anyway (Win10 --> macOS).

Turns out resources are in fact needed (file system and DB), need to move the file system across (relaitive to catalog), and then update resources in the DB)