Git Product home page Git Product logo

dm-is-schemaless's People

Contributors

brianthecoder avatar

Stargazers

 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

Forkers

alixaxel

dm-is-schemaless's Issues

Column length too big for column 'body' (max = 21845); use BLOB or TEXT instead

I'm running the specs against mysql and after creating the schemaless_test database, the specs are throwing: "Column length too big for column 'body' (max = 21845); use BLOB or TEXT instead"

This occurs on every spec, here's an example trace:

8)
DataObjects::SQLError in 'DataMapper::Is::Schemaless structure has the property id'
Column length too big for column 'body' (max = 21845); use BLOB or TEXT instead
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:147:in `execute_non_query'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:147:in `create_model_storage'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/adapters/data_objects_adapter.rb:266:in `with_connection'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:144:in `create_model_storage'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:1166:in `create_model_storage'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:1260:in `auto_migrate_up!'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:49:in `send'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:49:in `repository_execute'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/model/descendant_set.rb:33:in `each'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/model/descendant_set.rb:33:in `each'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:48:in `repository_execute'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:42:in `auto_migrate_up!'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.1/lib/dm-core/migrations.rb:22:in `auto_migrate!'
./spec/integration/schemaless_spec.rb:10:

I'm guessing this is related to property :body, DataMapper::Types::Json, :default => {} but I don't know enough about DataMapper::Types::Json to know what if any changes need to be made.

mysql: Incorrect table definition; there can be only one auto column and it must be defined as a key

I'm using the latest dm stuff (built from github) and I get the following error for the mysql on every test:

Incorrect table definition; there can be only one auto column and it must be defined as a key
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:140:in `execute_non_query'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:140:in `create_model_storage'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters/data_objects_adapter.rb:283:in `with_connection'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:137:in `create_model_storage'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:1264:in `create_model_storage'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:1355:in `auto_migrate_up!'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:45:in `send'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:45:in `repository_execute'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/model/descendant_set.rb:33:in `each'
/Library/Ruby/Gems/1.8/gems/dm-core-0.10.2/lib/dm-core/model/descendant_set.rb:33:in `

I don't have postgres installed, and the error does not occur on the sqlite in memory adapter. Any ideas what the issue might be?

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.