Git Product home page Git Product logo

active_column's People

Contributors

karlfreeman avatar kevinrood avatar mwynholds avatar sideshowcoder 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

Watchers

 avatar  avatar  avatar  avatar  avatar

active_column's Issues

posts already exists in keyspace myapp_development

If I run the migration first time it thinks column family already exists but it does not. I even tried dropping and recreating the keyspace. It creates the column family though but with wrong comparator type.

Here is the output:

rake ks:migrate
== PostColumnFamily: migrating ===============================================
rake aborted!
posts already exists in keyspace myapp_development

Tasks: TOP => ks:migrate
(See full trace by running task with --trace)

Here is the migration files:

class PostColumnFamily < ActiveColumn::Migration

def self.up
create_column_family :posts do |cf|
cf.comment = 'Posts column family'
cf.comparator_type = :string
end
end
def self.down
drop_column_family :posts
end

This is what it creates:

ColumnFamily: posts
"Posts column family"
  Key Validation Class: org.apache.cassandra.db.marshal.BytesType
  Default column value validator: org.apache.cassandra.db.marshal.BytesType
  Columns sorted by: org.apache.cassandra.db.marshal.BytesType

end

Keyspace/Column family already exists

This may relate to issue #8.

I have developped an application with a bunch of migrations for it. I now tried to start with a completely empty database. However, running the migrations fails miserably. After creating the keyspace I tried to run the migrations.

Sometimes it threw an error claiming the column family schema_migrations already existed (which it did then, but not before I ran the migrations). Other times, it skipped that error but then claimed the first column family it tried to create already existed (same here: It didn't exist before, but after I tried to run the migrations). It seems like it attempts to run the same migration twice (don't know if that's what's actually happening though).

It may be worth noting that I encountered some strange behaviour previously when rolling back migrations. Sometimes two migrations had been reverted at once (not just one as I expected).

I already tried (multiple times):

  • Dropping the respective column family and retry running the migrations
  • Deleting/Recreating the ks/schema.json file
  • Dropping the whole keyspace and retry running the migrations
  • Dropping ALL data from cassandra and starting with a completly empty database.

I'm using cassandra 1.0.6, the twitter/cassandra gem (latest version, 0.15.0) and the latest version of your active_column gem.

Has anybody a clue what's going wrong here?
Thanks in advance

Where are the migrations stored in Cassandra? Which keyspace?

I've been getting an error when trying to run ks:migrate. I think it's related to how the schema_migration records are stored. How should the migrations work overall? What's stored where? Are the migrations using the new schema change features of Cassandra?

can't convert SimpleUUID::UUID into String

Getting "can't convert SimpleUUID::UUID into String" when trying to create a row.

Environment:
Cassandra 0.8.4
Cassandra gem v0.11.4

By default cassandra gem was using simple_uuid 0.2 but looks like active_column has dependency with 0.1 so I had add gem 'simple_uuid', "~> 0.1.0 in Gemfile.

need support for composite_type

How to define a composite type like
key_validation_class = 'CompositeType(IntegerType,TimeUUIDType)'

create column family MyCF
with comparator = 'UTF8Type'
and key_validation_class = 'CompositeType(IntegerType,TimeUUIDType)'
and default_validation_class = 'UTF8Type';

Cassandra 1.0 compatibility

Currently this not not compatible with Cassandra 1.0 and higher. Is there already some work being done? I am happy to investigate on that.

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.