|
|
@ -154,6 +154,7 @@ namespace SqlSugar |
|
|
|
this.Context.DbMaintenance.DropConstraint(tableName, constraintName); |
|
|
|
this.Context.DbMaintenance.DropColumn(tableName, item.DbColumnName); |
|
|
|
this.Context.DbMaintenance.AddColumn(tableName, EntityColumnToDbColumn(entityInfo, tableName, item)); |
|
|
|
if (item.IsPrimarykey) |
|
|
|
this.Context.DbMaintenance.AddPrimaryKey(tableName, item.DbColumnName); |
|
|
|
} |
|
|
|
} |
|
|
|