feat: added patch to update pageviews

This commit is contained in:
Shivam Mishra 2020-04-30 15:51:37 +05:30
parent 8ad2c08b5d
commit 89fe7cf1b0
2 changed files with 6 additions and 0 deletions

View file

@ -274,3 +274,4 @@ frappe.patches.v12_0.remove_parent_and_parenttype_from_print_formats
execute:from frappe.desk.page.setup_wizard.install_fixtures import update_genders;update_genders()
frappe.patches.v13_0.website_theme_custom_scss
frappe.patches.v13_0.set_existing_dashboard_charts_as_public
frappe.patches.v13_0.set_path_for_homepage_in_web_page_view

View file

@ -0,0 +1,5 @@
import frappe
def execute():
frappe.reload_doctype('Web Page View')
frappe.db.sql("""UPDATE `tabWeb Page View` set path="/" where path=''""")