On Nov 3, 1:41 am, Clive Crous <[email protected]> wrote:
> Hi,
>
> I'm not sure how do go about doing this at all and specifically in a
> Sequel migration for my production code running on mysql.
>
> done so far:
> I've added a column to a production table with :null => true
> then in the next migration I've populated that column with data
>
> what I need to do:
> in the following migration I'd like to set that column's :null => false
DB.alter_table(:table){set_column_allow_null :column, false}
> What may complicate matters is that this live/production system is
> running on an old version of Sequel but is quite stable so I've not
> updated it nor the code using it in some time.
> It's running at a few commits after Sequel version 2.10.0,
> specifically at this point:
> http://github.com/jeremyevans/sequel/commits/0dcdf7395827558baaed987f...
set_column_allow_null existed in 2.10.0, so it should work.
Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---