AndreasSko / go-jwlm

A command line tool to easily merge JW Library backups, written in Go.
MIT License
71 stars 3 forks source link

Support schema version range #147

Closed AndreasSko closed 7 months ago

AndreasSko commented 10 months ago

For some reason, the latest JW Library version moved the schema version back to 13. In the hope that in a next version schema 14 still doesn't contain changes, we are now allowing a range of supported schema versions. This means a backup can be of version 13 AND 14 and still be considered compatible.

coveralls commented 10 months ago

Coverage Status

coverage: 89.341%. remained the same when pulling 965c26ae3feb027cf7ecdf59f32fd6c4bb484da5 on schema_version_range into 2c233ccd021cc881b9346612c3bf0bbaf2740e07 on master.

AndreasSko commented 10 months ago

Tried to merge a backup with schema 13 with another one of version 14 and found wrong duplicates in inputFields. It might be that locations changed between those two versions somehow, so we actually can't merge between those two schemas.. Interesting though that new backups now have version 13 again. Maybe they silently rolled back to v13 for some reason..