remove unneccessary warning on sync
This commit is contained in:
parent
5df1bc92df
commit
1045aa020f
|
@ -4097,9 +4097,11 @@ func (s *Session) Sync2(beans ...interface{}) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if !(strings.HasPrefix(curType, expectedType) && curType[len(expectedType)] == '(') {
|
||||||
engine.LogWarnf("Table %s column %s db type is %s, struct type is %s",
|
engine.LogWarnf("Table %s column %s db type is %s, struct type is %s",
|
||||||
table.Name, col.Name, curType, expectedType)
|
table.Name, col.Name, curType, expectedType)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if expectedType == core.Varchar {
|
} else if expectedType == core.Varchar {
|
||||||
if engine.dialect.DBType() == core.MYSQL {
|
if engine.dialect.DBType() == core.MYSQL {
|
||||||
if oriCol.Length < col.Length {
|
if oriCol.Length < col.Length {
|
||||||
|
|
Loading…
Reference in New Issue