提交注释

This commit is contained in:
brookechen 2023-05-19 17:37:27 +08:00
parent adbb669cf2
commit 8e2ce8c53d
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 { } else if col.Comment != oriCol.Comment {
// only postgres dialect implement update comment now.
if engine.dialect.URI().DBType == schemas.POSTGRES { if engine.dialect.URI().DBType == schemas.POSTGRES {
_, err = session.exec(engine.dialect.ModifyColumnSQL(tbNameWithSchema, col)) _, err = session.exec(engine.dialect.ModifyColumnSQL(tbNameWithSchema, col))
} }