sourcenetwork / defradb

DefraDB is a Peer-to-Peer Edge Database. It's the core data storage system for the Source Network Ecosystem, built with IPLD, LibP2P, CRDTs, and Semantic open web properties.
413 stars 41 forks source link

Allow new schema versions without having to update the schema #1024

Open AndrewSisley opened 1 year ago

AndrewSisley commented 1 year ago

Part of #1002

Not all version changes involve schema changes, sometimes only the data contained within needs to be changed. We should allow the system to handle this (including the migration system, Lens).

Note: This ticket is highly unlikely to be part of Defra v0.5 but will be tagged as such for now and then descoped if/when required.

AndrewSisley commented 1 year ago

This is at least partially tested by TestSchemaUpdatesMoveCollectionDoesNothing, but we could have more (perhaps an empty patch test for example, which should be added anyway). Will leave ticket open and as part of 0.5 for now

I misread the ticket. Moving to 0.6