Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maintaining backwards compatibility with my object database?

I am writing an application using an object database (db4o) and in agile fashion will be starting from a small, minimal implementation and iteratively adding features from there, while releasing new versions of the software as I go.

The main question I have is how to maintain backwards compatibility for the database, as new implementations of the model classes are developed, so that users will be able to use first edition saved data with 10th edition software.

Are there some standard ways to do this, especially using an object database?

like image 593
Alex Baranosky Avatar asked Aug 31 '26 06:08

Alex Baranosky


1 Answers

db4o supports automatic object schema evolution for the basic class model changes (field name deletion/addition). More complex class model modifications, like field name change, field type change, hierarchy move are not automated out-of-the box, but can be automated by writing small utility update program.

See documentation here and here.

like image 65
akuhn Avatar answered Sep 01 '26 20:09

akuhn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!