feat(conversation): add conversation_scene field
This commit is contained in:
@@ -30,5 +30,6 @@ public class Conversation extends BaseEntity {
|
||||
private Long contractId;
|
||||
private String channelCode;
|
||||
private String receiveConfig;
|
||||
private Integer conversationScene;
|
||||
private Integer status;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE mci_conversation
|
||||
ADD COLUMN conversation_scene TINYINT NULL COMMENT '会话场景:1=内部群 2=外部群';
|
||||
|
||||
-- 现有数据:群聊默认外部群(客户群)
|
||||
UPDATE mci_conversation
|
||||
SET conversation_scene = 2
|
||||
WHERE conversation_type = 2 AND conversation_scene IS NULL;
|
||||
Reference in New Issue
Block a user