Skip to content

Commit 2118c6b

Browse files
lunnyyp05327
andcommitted
Update models/migrations/v1_23/v297.go
Co-authored-by: yp05327 <[email protected]>
1 parent 58b4698 commit 2118c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/migrations/v1_23/v300.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type CommentMetaData struct {
1515

1616
func AddCommentMetaDataColumn(x *xorm.Engine) error {
1717
type Comment struct {
18-
CommentMetaData CommentMetaData `xorm:"JSON TEXT"` // put all non-index metadata in a single field
18+
CommentMetaData *CommentMetaData `xorm:"JSON TEXT"` // put all non-index metadata in a single field
1919
}
2020

2121
return x.Sync(new(Comment))

0 commit comments

Comments
 (0)