WebOfTrust / keripy

Key Event Receipt Infrastructure - the spec and implementation of the KERI protocol
https://keripy.readthedocs.io/en/latest/
Apache License 2.0
60 stars 55 forks source link

feat: add database migrations up to 1.2.0 #874

Closed kentbull closed 1 month ago

kentbull commented 1 month ago

Adds database migrations for:

I discovered the need for the hab_data_rename migration while testing migration for 0.6.7 test Root GAR databases similar to production as we believe v0.6.7 is what is in production for Root GARs.

The add_key_and_reg_state_schemas we initially thought was specific to Provenant yet in my testing it turns out it is needed to take a Root GAR 0.6.7 database up to 1.0.0, so not specific to Provenant.

I added the name, base, and temp args to db.migrate(...) so that the viring.Reger database could be initialized without having to open up the Habery.

Important

The rekey_habs migration is not run even though it is included in this PR because it's version of 1.2.0 is above the KERI version of 1.1.19 stated in KERIpy. That migration is only needed for the v1.2.x series of releases. I include it in this PR only for completeness to remove any question of whether it is needed or not. It's not needed, though it is useful to see in this PR for reference.

kentbull commented 1 month ago

This includes the semver cleanup idea from https://github.com/WebOfTrust/keripy/pull/872