comeara / pillar

Pillar manages migrations for your Cassandra data stores.
https://github.com/comeara/pillar
MIT License
111 stars 64 forks source link

Auto USE keyspace in session once Pillar is initialized #16

Open fkoehler opened 10 years ago

fkoehler commented 10 years ago

With 2.0.0 I run into the issue that when creating a new keyspace with Pillar.initilaize I get an [error] An error occurred while performing task: com.datastax.driver.core.exceptions.InvalidQueryException: no keyspace has been specified com.datastax.driver.core.exceptions.InvalidQueryException: no keyspace has been specified when running the real migrations. One solution is to execute session.execute("USE $keyspace") AFTER Pillar.initialize run but before Pillar.migrate

I think Pillar should do this automatically, meaning in Pillar.migrate it should "USE $keyspace"