Update models/migrations/v1_23/v297.go

Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
Lunny Xiao 2024-05-02 13:23:31 +08:00 committed by GitHub
parent 22a1e68ff2
commit b6faeefa97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ type CommentMetaData struct {
func AddCommentMetaDataColumn(x *xorm.Engine) error {
type Comment struct {
CommentMetaData CommentMetaData `xorm:"JSON TEXT"` // put all non-index metadata in a single field
CommentMetaData *CommentMetaData `xorm:"JSON TEXT"` // put all non-index metadata in a single field
}
return x.Sync(new(Comment))