fix: patch for removing post and post comment doctypes

This commit is contained in:
phot0n 2022-01-28 21:07:18 +05:30
parent e716a55932
commit 6baae86787
2 changed files with 6 additions and 0 deletions

View file

@ -189,6 +189,7 @@ frappe.patches.v14_0.rename_cancelled_documents
frappe.patches.v14_0.update_workspace2 # 20.09.2021
frappe.patches.v14_0.save_ratings_in_fraction #23-12-2021
frappe.patches.v14_0.transform_todo_schema
frappe.patches.v14_0.remove_post_and_post_comment
[post_model_sync]
frappe.patches.v14_0.drop_data_import_legacy

View file

@ -0,0 +1,5 @@
import frappe
def execute():
frappe.delete_doc_if_exists("DocType", "Post")
frappe.delete_doc_if_exists("DocType", "Post Comment")