SubSonic-3.0 icon indicating copy to clipboard operation
SubSonic-3.0 copied to clipboard

Defaultvalue GenerateColumnAttributes in MySqlSchema.cs for longtext

Open Elrinth opened this issue 14 years ago • 0 comments

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.

Elrinth avatar Nov 04 '10 10:11 Elrinth