On Friday, September 14, 2012 2:56:50 AM UTC-7, Hannes Georg wrote:
>
> Hi
>
> I want to set some table options like the AUTO_INCREMENT value for a mysql
> table. I think there isn't a programmatic way to do this, so I'm going to
> write some extensions to the Schema::Generator so one can do something
> like this:
>
>
> DB.alter_table("table") do
>
> option 'AUTO_INCREMENT', 1234
>
> end
>
> What do you think about this? I know the option names are not portable,
> but on the other hand I think I'm not the only one who could use this
>
That's possible to implement on a per adapter basis using a schema
generator subclass (which the postgres adapter already uses). As long as a
patch comes with adapter specs for the behavior, I'd consider merging
something that added that.
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sequel-talk/-/J7ilmQjpluoJ.
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.