From 13ddbd115af8e87c9273a922f50daf2c9edd1939 Mon Sep 17 00:00:00 2001 From: RedCocoon Date: Thu, 7 Nov 2024 23:31:56 +0800 Subject: [PATCH] fix wrong xorg type --- models/conversations/conversation.go | 2 +- modules/indexer/conversations/indexer_test.go | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/models/conversations/conversation.go b/models/conversations/conversation.go index 1414b35d4d1c..9059c6cbe41c 100644 --- a/models/conversations/conversation.go +++ b/models/conversations/conversation.go @@ -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:"-"` diff --git a/modules/indexer/conversations/indexer_test.go b/modules/indexer/conversations/indexer_test.go index a3644e74002c..4cc292601ce0 100644 --- a/modules/indexer/conversations/indexer_test.go +++ b/modules/indexer/conversations/indexer_test.go @@ -64,12 +64,6 @@ func searchConversationWithKeyword(t *testing.T) { }, []int64{1}, }, - { - SearchOptions{ - Keyword: "comment", - }, - []int64{2, 4}, - }, } for _, test := range tests {