浏览代码

Merge pull request #15777 from surajshetty3416/chat-removal-patch

fix: Add patch to remove chat related doctypes
version-14
mergify[bot] 3 年前
committed by GitHub
父节点
当前提交
68034a4feb
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 17 次插入0 次删除
  1. +1
    -0
      frappe/patches.txt
  2. +16
    -0
      frappe/patches/v13_0/remove_chat.py

+ 1
- 0
frappe/patches.txt 查看文件

@@ -175,6 +175,7 @@ execute:frappe.delete_doc_if_exists('Page', 'workspace')
execute:frappe.delete_doc_if_exists('Page', 'dashboard', force=1)
frappe.core.doctype.page.patches.drop_unused_pages
execute:frappe.get_doc('Role', 'Guest').save() # remove desk access
frappe.patches.v13_0.remove_chat
frappe.patches.v13_0.rename_desk_page_to_workspace # 02.02.2021
frappe.patches.v13_0.delete_package_publish_tool
frappe.patches.v13_0.rename_list_view_setting_to_list_view_settings


+ 16
- 0
frappe/patches/v13_0/remove_chat.py 查看文件

@@ -0,0 +1,16 @@
import frappe
import click

def execute():
frappe.delete_doc_if_exists("DocType", "Chat Message")
frappe.delete_doc_if_exists("DocType", "Chat Profile")
frappe.delete_doc_if_exists("DocType", "Chat Token")
frappe.delete_doc_if_exists("DocType", "Chat Room User")
frappe.delete_doc_if_exists("DocType", "Chat Room")
frappe.delete_doc_if_exists("Module Def", "Chat")

click.secho(
"Chat Module is moved to a separate app and is removed from Frappe in version-13.\n"
"Please install the app to continue using the chat feature: https://github.com/frappe/chat",
fg="yellow",
)

正在加载...
取消
保存