ソースを参照

fix: Add patch to remove chat related doctypes

version-14
Suraj Shetty 3年前
コミット
6f5feb05fa
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",
)

読み込み中…
キャンセル
保存