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"
	''')

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'
	''')

Make db query postgres compatible
Make db query postgres compatible
