You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
class A
include DataMapper::Resource
property :id, Serial
property :no_recipes_with, Object, default: ""
end
and when autoupgrade :
rake db:autoupgrade
rake aborted!
BLOB/TEXT column 'no_recipes_with' can't have a default value
(mysql)
But if I remove the default value, upgrade the database, and put the default value again back, it works.
Wouldn't be a better fall back if it uses de default value in model objects in this cases?
Or I'm not supposed to use default value if upgrade fails?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I Tried
class A
include DataMapper::Resource
property :id, Serial
property :no_recipes_with, Object, default: ""
end
and when autoupgrade :
rake db:autoupgrade
rake aborted!
BLOB/TEXT column 'no_recipes_with' can't have a default value
(mysql)
But if I remove the default value, upgrade the database, and put the default value again back, it works.
Wouldn't be a better fall back if it uses de default value in model objects in this cases?
Or I'm not supposed to use default value if upgrade fails?
The text was updated successfully, but these errors were encountered: