mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 12:18:00 +08:00
Modify the table creation structure comparison
This commit is contained in:
parent
b0bd0d9776
commit
43a483824a
@ -202,6 +202,11 @@ namespace SqlSugar
|
||||
var newTableInfo = tables.FirstOrDefault(it => it.Name.EqualCase(oldTableName));
|
||||
var oldTable = db.DbMaintenance.GetColumnInfosByTableName(oldTableName, false);
|
||||
var tempTable = db.DbMaintenance.GetColumnInfosByTableName(tempTableName, false);
|
||||
if (oldTableInfo.Name == null)
|
||||
{
|
||||
oldTableInfo.Name = "还未创建:" + oldTableName;
|
||||
newTableInfo.Name = "还未创建:" + oldTableName;
|
||||
}
|
||||
result.tableInfos.Add(new DiffTableInfo()
|
||||
{
|
||||
OldTableInfo= oldTableInfo,
|
||||
|
Loading…
Reference in New Issue
Block a user