- 修复 MySql CodeFirst OldName + Comment 迁移问题;#1147

This commit is contained in:
2881099
2022-06-06 12:55:31 +08:00
parent 24f55fa0f4
commit fba96d7f2c
5 changed files with 23 additions and 189 deletions

View File

@ -299,7 +299,7 @@ where a.table_schema IN ({0}) and a.table_name IN ({1}) and a.index_name <> 'PRI
if (dbcomment != (tb.Comment ?? ""))
sb.Append("ALTER TABLE ").Append(_commonUtils.QuoteSqlName(tbname[0], tbname[1])).Append(" COMMENT ").Append(" ").Append(_commonUtils.FormatSql("{0}", tb.Comment ?? "")).Append(";\r\n");
sb.Append(sbalter);
sb.Insert(0, sbalter);
continue;
}