erikh / saturn

A calendar for CLI nerds
MIT License
22 stars 0 forks source link

DB loading routines destroy the DB if the version changes #37

Closed erikh closed 1 year ago

erikh commented 1 year ago

Getting this in here for the next release, although until this bug is closed this is still outstanding.

The DB loading routines are susceptible to erasing the contents of the database if the underlying type structure changes. I think I'm just missing an error check that I am not trapping properly e.g. in an async routine.

This shouldn't break you unless you switch between versions of saturn a lot, and in the google case the database is automatically repopulated.

erikh commented 1 year ago

Hmm. Something else is going on here and I'm not sure it's just related to version switching. Still looking into it.