SubSonic-3.0
SubSonic-3.0 copied to clipboard
Defaultvalue GenerateColumnAttributes in MySqlSchema.cs for longtext
public override string GenerateColumnAttributes(IColumn column) line 125 in SubSonic.Core/DataProviders/MySQL/MySqlSchema.cs
I added a bool here called addDefaultValue which is true by default. If datatype is string and maxlength > 8000 (already there) then I set addDefaultValue to false. Then a bit further down in the same function, when checking if column.DefaultSetting isn't null. I also added that addDefaultValue has to be set true here.
Because I get an error when migrating a longtext saying it can't have a default value.