I was expecting to write something like:
Create.Column( "NewColumn" ).OnTable( "Tbl" ).AsString();
Execute.Sql( "update Tbl set NewColumn = 'default'" );
Alter.Column( "NewColumn" ).OnTable( "Tbl" ).AsString().NotNullable();
But there does not seem to be any kind of Alter column mechanism. Am
I just over looking it, or is there another way to accomplish this?
Thanks!
Kevin
Altering a column is a known issue. http://github.com/enkari/fluentmigrator/issues#issue/3
Did you try the .WithDefault syntax?
Create.Column( "NewColumn" ).OnTable( "Tbl" ).AsString().WithDefault("default").
-Shane
Sean
On Mar 30, 2010, at 6:01 PM, Shane Walters
<shane.si...@gmail.com> wrote:
> --
> You received this message because you are subscribed to the Google
> Groups "FluentMigrator Google Group" group.
> To post to this group, send email to fluentmigrato...@googlegroups.com
> .
> To unsubscribe from this group, send email to fluentmigrator-goog...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/fluentmigrator-google-group?hl=en
> .
>