I have an existing Not Null column and I need to change the length.
Alter.Column("SystemName")
.OnTable(AlertDefs)
.AsString(255);
Results in :
ALTER TABLE stAlertDefs MODIFY SystemName NVARCHAR2(255) NOT NULL
This works fine in SqlServer.
Oracle, pig that it is, complains
!!! ORA-01442: column to be modified to NOT NULL is already NOT NULL
because it's not smart enough to just ignore the NOT NULL and go on about life.
Any ideas on how to handle this? My thoughts are we should not generate 'Not Null' unless the Alter specifically had .NotNullable(). But if I change Expression.Column.IsNullable to bool?, then it would probably break anyone's existing migrations when they don't have .NotNullable().
I'm fishing for ideas. I can always use native sql to make this change instead of fluent syntax.
Thanks,
-Shane