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 14 #146

Closed AndreasSko closed 11 months ago

AndreasSko commented 11 months ago

With the latest JW Library update the schema version of the manifest has increased to 14 now. The sqldiff didn't show anything special:

sqldiff /Users/askorczyk/src/GitHub/go-jwlm/model/data/userData.db /Users/askorczyk/Downloads/UserdataBackup_2023-08-13_iPhone/userData.db
UPDATE LastModified SET LastModified='2023-08-13T10:07:57Z' WHERE rowid=1;
UPDATE grdb_migrations SET identifier='v14' WHERE rowid=1;

So it should be safe to simply update the schema version without adjusting the model.

Other changes: More granular error message on manifest validation

Instead of just saying that the version is incompatible, it is communicated if the received version is either too old or too new.

coveralls commented 11 months ago

Coverage Status

coverage: 89.358% (-0.005%) from 89.363% when pulling cfb9d5ae692415a7545e9aa77da73bf33941f376 on schema_14 into 3e0a485a4404de9423bb546886c7509dbfb6635a on master.