cassandra-migration icon indicating copy to clipboard operation
cassandra-migration copied to clipboard

Elassandra migrations

Open svok opened this issue 6 years ago • 2 comments

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"
          },
        }
      }
    }
  }
}

svok avatar Aug 21 '18 08:08 svok

Any updates on this?

carlspring avatar Dec 17 '20 03:12 carlspring

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.

patka avatar Dec 29 '20 08:12 patka