Skip to content

Commit

Permalink
fix wrong xorg type
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCocoon committed Nov 7, 2024
1 parent 6f9c81f commit 13ddbd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion models/conversations/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type Conversation struct {
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
LockedUnix timeutil.TimeStamp `xorm:"INDEX"`

IsLocked bool `xorm:"INDEX DEFAULT false"`
IsLocked bool `xorm:"NOT NULL DEFAULT false"`

Comments CommentList `xorm:"-"`

Expand Down
6 changes: 0 additions & 6 deletions modules/indexer/conversations/indexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ func searchConversationWithKeyword(t *testing.T) {
},
[]int64{1},
},
{
SearchOptions{
Keyword: "comment",
},
[]int64{2, 4},
},
}

for _, test := range tests {
Expand Down

0 comments on commit 13ddbd1

Please sign in to comment.