Ruby on Rails Friday, April 1, 2011

On 1 April 2011 12:06, Madhusudhan H R <lists@ruby-forum.com> wrote:
> I developed an app with postgres DB but want to change the DB to
> sqlite3.
>
> "Cannot add a NOT NULL column with default value NULL: ALTER TABLE
> "rates" ADD "customer_id" integer NOT NULL".

IIRC the same problem cropped up a couple of months back and it was a
'feature' of SQLite - it will create tables with "NOT NULL" fields,
but won't allow alters - even if the table is empty Have a check of
the archives for similar issues...

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment