mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
58dd036ad5
commit
d91c35d89e
@ -278,7 +278,7 @@ namespace SqlSugar
|
||||
.FirstOrDefault(it=>it.DbColumnName.EqualCase(column.DbColumnName));
|
||||
if (oldColumn != null)
|
||||
{
|
||||
if (oldColumn.IsNullable == column.IsNullable&&oldColumn.IsPrimarykey==false&&oldColumn.IsIdentity==false)
|
||||
if (oldColumn.IsNullable == column.IsNullable)
|
||||
{
|
||||
var sql=GetUpdateColumnSqlOnlyType(tableName, column);
|
||||
this.Context.Ado.ExecuteCommand(sql);
|
||||
|
Loading…
Reference in New Issue
Block a user