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

  import frappe
  
  def execute():
  	frappe.db.sql('''
  		UPDATE `tabPrint Format`
- 		SET `print_format_type` = "Jinja"
+ 		SET `print_format_type` = 'Jinja'
- 		WHERE `print_format_type` in ("Server", "Client")
+ 		WHERE `print_format_type` in ('Server', 'Client')
  	''')
  	frappe.db.sql('''
  		UPDATE `tabPrint Format`
- 		SET `print_format_type` = "JS"
+ 		SET `print_format_type` = 'JS'
- 		WHERE `print_format_type` = "Js"
+ 		WHERE `print_format_type` = 'Js'
  	''')
  
Make db query postgres compatible
## Code Before:
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"
	''')

## Instruction:
Make db query postgres compatible
## Code After:
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'
	''')
