patka / cassandra-migration

Schema migration library for Cassandra
MIT License
152 stars 47 forks source link

Elassandra migrations #29

Open svok opened 6 years ago

svok commented 6 years ago

Elassandra contains both Cassandra and ElasticSearch databases, so they both require migrations. The current project is the closest one capable to provide both types of migrations.

For that purpose I suggest to use files with extensions esrest.json with content:

{
  "url": "http://${cassandra-host}:${elastic-port}",
  "method": "PUT",
  "path": "/${cassandra-keyspace}",
  "payload": {
    "settings": {
      "index": {
        "drop_on_delete_index": false
      }
    },
    "mappings": {
      "enforcement": {
        "properties": {
          "name": {
            "type": "text",
            "cql_collection": "singleton"
          },
        }
      }
    }
  }
}
carlspring commented 3 years ago

Any updates on this?

patka commented 3 years ago

Hi,

sorry I just realized that I forgot to answer to this when it was created. Currently, I do not have plans to add support for this. The main reason is that this became a project that I maintain purely in my spare time (which has become tough in the context of Covid, home office and kids being home) and there are other features that are higher on my priority list.

However, I do have plans for a redesign of the library that would make it more open and allow to plugin different implementations to some of the main classes. I think with this redesign implementing this feature should be feasable.