Merge pull request #55056 from frappe/mergify/bp/version-15-hotfix/pr-55053

fix(patch): drop dead procedures first before other changes (backport #55053)
This commit is contained in:
ruthra kumar
2026-05-19 17:01:32 +05:30
committed by GitHub

View File

@@ -2,11 +2,11 @@ import frappe
def execute():
frappe.db.sql("drop function if exists ar_genkey")
frappe.db.sql("drop procedure if exists ar_init_tmp_table")
frappe.db.sql("drop procedure if exists ar_allocate_to_tmp_table")
if frappe.db.get_single_value("Accounts Settings", "receivable_payable_fetch_method") == "Raw SQL":
frappe.db.set_single_value(
"Accounts Settings", "receivable_payable_fetch_method", "UnBuffered Cursor"
)
frappe.db.sql("drop function if exists ar_genkey")
frappe.db.sql("drop procedure if exists ar_init_tmp_table")
frappe.db.sql("drop procedure if exists ar_allocate_to_tmp_table")