Giter Site home page Giter Site logo

cassandra-migration's People

Contributors

danielrohe avatar jdgoldie avatar meg23 avatar ntatsumi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cassandra-migration's Issues

Support escaped keyspace names

Current version does not support keyspace names that starts with numbers and have to escaped
Example keyspace 111_test have to be passed as parameter -Dcassandra.migration.keyspace.name="111_test"
and it fails at this check
for (KeyspaceMetadata keyspaceMetadata : keyspaces) {
if (keyspace.getName().equalsIgnoreCase(keyspaceMetadata.getName()))
keyspaceExists = true;
}
if (keyspaceExists)
session.execute("USE " + keyspace.getName());
else
throw new CassandraMigrationException("Keyspace: " + keyspace.getName() + " does not exist.");

No way to use it for automation

Nice project.
But there is a issue for using it for automation.
It requires to have keyspace created before migration, but how to create keyspace itself if I'm interested just for some quick check?

And for production yes, keyspace must be created by devops.

It's not actual issue for this project, but would be nice to have such feature for wide usage.

Support for custom resolvers

I would be helpfull to have a possibility to extract migrations from an IoC-container. It can be done by adding custom JavaMigrationResolver. So please make CassandraMigration.createMigrationResolver protected instead of private.

Support for Cassandra 3.x

The current version of this project is using cassandra-driver-core version 2.1.9, which is not compatible with Cassandra 3.x. Datastax has a driver compatibility matrix here: http://datastax.github.io/java-driver/manual/native_protocol/

It looks like the 3.x driver will support all versions of Cassandra, but the 2.1.x driver is not supported with Cassandra 3.x.

Is it possible to update the dependency of cassandra-driver-core to 3.x so we can use the latest version of Cassandra?

SQL error with cassandra 3.7

In SchemaVersionDAO.java, line 205,
" SET count = count + 1" +
"WHERE name = 'installed_rank';");

there is a missing whitespace between "1" and "WHERE". This starts to cause exceptions from cassandra 3.7 on, no idea why it was accepted before

no main manifest attribute, in target/cassandra-migration-1.0.jar

Hi,
We’re working with Cassandra in a project,
And I’m trying to use cassandra-migration library for migrations using CQL files.

I couldn’t understand how I run the migrations from command line.

I created a pom.xml with dependency to cassandra-migration.
And a db/migrations folder with one CQL file.
Then I run mvn install
And java -jar \ -Dcassandra.migration.keyspace.name=audit \ target/cassandra-migration-1.0.jar migrate

But I get:
no main manifest attribute, in target/cassandra-migration-1.0.jar

Is there someone who can help me get it running?

Thanks a lot!

Missing OSGi bundle LocationScanner

There is no "bundle" location scanner, only a FileSystemClassPathLocationScanner and JarFileClassPathLocationScanner.

Proposal create a bundle location scanner.
Update ClassPathScanner.java, method createLocationScanner:
if("bundle".equals(protocol)){ ...

Creating a patch for submission

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.