Comments (6)
I was talking to Davide on IRC
He confirmed that doing DataMapper::Property::Text instead of just Text solves the uninitialized constant Text error.
I (and I know some others who) couldn’t reproduce the issue with create/drop complaining about the backticks. I’m not sure, but aren’t they explicitly added for portability? Also, Davide couldn’t reproduce the issue anymore when trying today afternoon.
I’m not entirely sure about the last problem concerning .sub(///,’’) but I’ve tried all the db related tasks on mysql and didn’t notice any problems neither on ruby-1.8.7 nor ruby-1.9.2-preview3.
I’m not sure what new state is best for this ticket, Davide was saying that it’d be ok for him to close it. I’m assigning it to me and marking it "Hold" for now. Feel free to change.
by Martin Gamsjaeger (snusnu)
from dm-migrations.
This also effects Property classes that are shadowed by Ruby constants, such as DataMapper::Property::URI. I tried using a const_missing hook to access constants from DataMapper::Property but URI is global.
by Postmodern
from dm-migrations.
Injecting "URI = DataMapper::Property::URI" into DataMapper::Migration seems to do the trick. Of course this is in combination with a const_missing hook.
by Postmodern
from dm-migrations.
I have confirmed that the http://github.com/postmodern/dm-migrations branch has fixed this issue for Text, Boolean, and other types in dm-core. When using URI from dm-types specifying it explicitly as DataMapper::Property::URI ie column :source, DataMapper::Property::URI
is a work around for the URI issue.
by Dennison Williams
from dm-migrations.
My const_missing hook has re-appeared in my fork of dm-core:
http://github.com/postmodern/dm-core/commits/postmodern
by Postmodern
from dm-migrations.
Is there a further action on this?
from dm-migrations.
Related Issues (20)
- dm-oracle-adapter: auto_upgrade does not work on Oracle when adding a required property HOT 5
- dm-migrations contains hardcoded SQL HOT 1
- auto_upgrade doesn't work with property type change HOT 3
- AutoUpgrades fail on STI models. HOT 7
- change_column produces bad SQL on Postgres HOT 5
- Migrating from one dbms backend to another HOT 1
- NoMethodError: undefined method `variable_value' (JRuby 1.6.3 and dm-mysql-adapter)
- auto_upgrade! within a Postgres migration creates bad create table sql HOT 1
- rename_column sql syntax is incorrect HOT 4
- Explicit migrations cannot lookup DataMapper Property constants with dm-rails and Ruby 1.8.7
- auto-migration specs fail with syntax error on mysql 14.14
- Alter column length on migration for PostgreSQL db fails due to incorrect syntax HOT 1
- Better fallback for defauls on autoupgrade opration?
- doesn't migrate repositories which are not :default HOT 2
- Support creation of composite primary keys
- Issues with db:setup and db:migrate HOT 3
- Can't convert nil into Hash when using a type from dm-types
- dm-migrations needs a new maintainer. HOT 1
- SQLite and required field without default adds 'DEFAULT NULL'
- Running tests on migrations as given in example fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dm-migrations.