<commit_before>import frappe


def execute():
	doctype = "Integration Request"
	frappe.db.set_value(
		doctype,
		{"integration_type": "Remote", "integration_request_service": ("!=", "PayPal")},
		"is_remote_request",
		1,
	)
	frappe.db.set_value(
		doctype,
		{"integration_type": "Subscription Notification"},
		"request_description",
		"Subscription Notification",
	)
<commit_msg>fix: ignore if integration_type column doesn't exist (for direct v14 installations) for integration request patch<commit_after>import frappe


def execute():
	doctype = "Integration Request"

	if not frappe.db.has_column(doctype, "integration_type"):
		return

	frappe.db.set_value(
		doctype,
		{"integration_type": "Remote", "integration_request_service": ("!=", "PayPal")},
		"is_remote_request",
		1,
	)
	frappe.db.set_value(
		doctype,
		{"integration_type": "Subscription Notification"},
		"request_description",
		"Subscription Notification",
	)

{'fraction_non_alphanumeric': 0.13675213675213677, 'fraction_numerical': 0.004273504273504274, 'mean_word_length': 5.940740740740741, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7653678', 'n_tokens_mistral': 342, 'n_tokens_neox': 313, 'n_words': 65}