import frappe

def execute():
	frappe.db.sql('''
		UPDATE `tabPrint Format`
		SET `print_format_type` = "Jinja"
		WHERE `print_format_type` in ("Server", "Client")
	''')
	frappe.db.sql('''
		UPDATE `tabPrint Format`
		SET `print_format_type` = "JS"
		WHERE `print_format_type` = "Js"
	''')

@@ -101,15 +101,15 @@
 %60 = 
-%22
+'
 Jinja
-%22
+'
 %0A%09%09W
@@ -141,26 +141,26 @@
 in (
-%22
+'
 Server
-%22, %22
+', '
 Client
-%22
+'
 )%0A%09'
@@ -241,12 +241,12 @@
 %60 = 
-%22JS%22
+'JS'
 %0A%09%09W
@@ -276,12 +276,12 @@
 %60 = 
-%22Js%22
+'Js'
 %0A%09''

Make db query postgres compatible