Преглед на файлове

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) execute:frappe.delete_doc_if_exists('Page', 'dashboard', force=1)
frappe.core.doctype.page.patches.drop_unused_pages frappe.core.doctype.page.patches.drop_unused_pages
execute:frappe.get_doc('Role', 'Guest').save() # remove desk access 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.rename_desk_page_to_workspace # 02.02.2021
frappe.patches.v13_0.delete_package_publish_tool frappe.patches.v13_0.delete_package_publish_tool
frappe.patches.v13_0.rename_list_view_setting_to_list_view_settings 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",
)

Зареждане…
Отказ
Запис