from __future__ import unicode_literals
import frappe

def execute():
	frappe.reload_doc("workflow", "doctype", "workflow_transition")
	frappe.db.sql("update `tabWorkflow Transition` set allow_self_approval=1")