mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
feat: drop payload column
This commit is contained in:
@@ -19,10 +19,10 @@
|
|||||||
"paid",
|
"paid",
|
||||||
"currency",
|
"currency",
|
||||||
"amount",
|
"amount",
|
||||||
|
"invoice",
|
||||||
"razorpay_details_section",
|
"razorpay_details_section",
|
||||||
"subscription_id",
|
"subscription_id",
|
||||||
"payment_id",
|
"payment_id"
|
||||||
"webhook_payload"
|
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
@@ -118,17 +118,15 @@
|
|||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "webhook_payload",
|
"fieldname": "invoice",
|
||||||
"fieldtype": "Code",
|
"fieldtype": "Link",
|
||||||
"hidden": 1,
|
"label": "Invoice",
|
||||||
"label": "Webhook Payload",
|
"options": "Sales Invoice"
|
||||||
"options": "JSON",
|
|
||||||
"read_only": 1
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2020-07-27 14:28:11.532696",
|
"modified": "2020-07-31 13:57:02.328995",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Non Profit",
|
"module": "Non Profit",
|
||||||
"name": "Membership",
|
"name": "Membership",
|
||||||
|
|||||||
@@ -721,3 +721,4 @@ erpnext.patches.v13_0.healthcare_lab_module_rename_doctypes
|
|||||||
erpnext.patches.v13_0.stock_entry_enhancements
|
erpnext.patches.v13_0.stock_entry_enhancements
|
||||||
erpnext.patches.v12_0.update_state_code_for_daman_and_diu
|
erpnext.patches.v12_0.update_state_code_for_daman_and_diu
|
||||||
erpnext.patches.v12_0.rename_lost_reason_detail
|
erpnext.patches.v12_0.rename_lost_reason_detail
|
||||||
|
erpnext.patches.v13_0.drop_razorpay_payload_column
|
||||||
|
|||||||
7
erpnext/patches/v13_0/drop_razorpay_payload_column.py
Normal file
7
erpnext/patches/v13_0/drop_razorpay_payload_column.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
if frappe.db.exists("DocType", "Membership Settings"):
|
||||||
|
if 'webhook_payload' in frappe.db.get_table_columns("Membership Settings"):
|
||||||
|
frappe.db.sql("alter table `tabMembership Settings` drop column webhook_payload")
|
||||||
Reference in New Issue
Block a user