-
Notifications
You must be signed in to change notification settings - Fork 20
Database Migration Library #275
Comments
@heydenreich, @mcjaeger, @MaximilianHuber, @bs-jokri, you are invited to give your feedback on this |
Another idea might be to use tools like this one However, I haven't tested it yet. |
Granted, flycouchdb runs in the JVM, but it introduces a dependency on Clojure. Better than Python, I guess, but not by much. I haven't found any CouchDB migration library written in Java, which would be ideal. |
I am not sure, but isn't Clojure a compile time dependency and python + python-couchdb a runtime dependency? I think runtime dependency are worse. |
from discussion: we will try flycouchdb first. If that works, we won't try to invent the bicycle anew. |
@alex-evo Another alternative: add to every thrift structure the filed for each JSON-object check which type and revision it has. Then apply all known migrations and write the current revision into the objet. Problem: how to handle global changes / merge of objects / ... |
Changes in the Thrift data model sometimes produce incompatibilities between newer code and older data in existing couchdb instances. A library to facilitate automatic migration of the data to the new data model version should be developed.
So far, there were a few Python scripts developed for migrating data (see scripts/migrations), but there is no automation to that. It is necessary to manually start the correct scripts in the correct order. Also, these scripts introduce a dependency to Python, which is otherwise unnecessary.
The requirements for the new database migration library are:
The text was updated successfully, but these errors were encountered: