brotherton-erpnext/erpnext/patches/v10_0/update_hub_connector_domain.py

10 lines
276 B
Python
Raw Normal View History

from __future__ import unicode_literals
2018-03-15 07:18:32 +00:00
import frappe
def execute():
2018-03-19 12:47:54 +00:00
if frappe.db.table_exists("Data Migration Connector"):
frappe.db.sql("""
UPDATE `tabData Migration Connector`
SET hostname = 'https://hubmarket.org'
WHERE connector_name = 'Hub Connector'
""")