提交注释

This commit is contained in:
brookechen 2023-05-19 17:37:27 +08:00
parent 7b68be0cc3
commit 46928a07ba
1 changed files with 1 additions and 0 deletions

View File

@ -377,6 +377,7 @@ func (session *Session) Sync(beans ...interface{}) error {
}
}
} else if col.Comment != oriCol.Comment {
// only postgres dialect implement update comment now.
if engine.dialect.URI().DBType == schemas.POSTGRES {
_, err = session.exec(engine.dialect.ModifyColumnSQL(tbNameWithSchema, col))
}