Explorar el Código

[patch-fix]

version-14
Rushabh Mehta hace 10 años
padre
commit
8180c64b67
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      frappe/patches/v5_0/rename_ref_type_fieldnames.py

+ 3
- 3
frappe/patches/v5_0/rename_ref_type_fieldnames.py Ver fichero

@@ -8,12 +8,12 @@ def execute():
try:
frappe.db.sql("alter table `tabBulk Email` change `ref_docname` `reference_name` varchar(255)")
except Exception, e:
if e.args[0] != 1054:
if e.args[0] not in (1054, 1060):
raise
try:
frappe.db.sql("alter table `tabBulk Email` change `ref_doctype` `reference_doctype` varchar(255)")
except Exception, e:
if e.args[0] != 1054:
if e.args[0] not in (1054, 1060):
raise
frappe.reload_doctype("Bulk Email")

Cargando…
Cancelar
Guardar