mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 20:57:58 +08:00
Optimize old data for updating new columns
This commit is contained in:
parent
1d99967093
commit
f5a136c4be
@ -384,7 +384,7 @@ namespace SqlSugar
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("double","decimal","int","int4","bigint","int8","int2")&& columnInfo.DefaultValue.IsInt())
|
||||
else if (columnInfo.DataType.ObjToString().ToLower().IsIn("float","double","decimal","int","int4","bigint","int8","int2")&& columnInfo.DefaultValue.IsInt())
|
||||
{
|
||||
value = columnInfo.DefaultValue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user