import frappe

def execute():
    frappe.db.sql("""
        UPDATE `tabData Migration Connector`
        SET hostname = 'https://hubmarket.org'
        WHERE connector_name = 'Hub Connector'
    """)
@@ -23,20 +23,74 @@
 cute():%0A
-    
+%09if frappe.db.table_exists(%22Data Migration Connector%22):%0A%09%09
 frappe.d
@@ -99,24 +99,19 @@
 sql(%22%22%22%0A
-        
+%09%09%09
 UPDATE %60
@@ -139,24 +139,19 @@
 nector%60%0A
-        
+%09%09%09
 SET host
@@ -185,16 +185,11 @@
 rg'%0A
-        
+%09%09%09
 WHER
@@ -227,12 +227,10 @@
 or'%0A
-    
+%09%09
 %22%22%22)

patch fix