diff --git a/frappe/patches/v14_0/fix_user_settings_collation.py b/frappe/patches/v14_0/fix_user_settings_collation.py index 9fc2e94bc4..27104e44ed 100644 --- a/frappe/patches/v14_0/fix_user_settings_collation.py +++ b/frappe/patches/v14_0/fix_user_settings_collation.py @@ -2,4 +2,7 @@ import frappe def execute(): - frappe.db.sql("ALTER TABLE __UserSettings CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;") + if frappe.db.db_type == "mariadb": + frappe.db.sql( + "ALTER TABLE __UserSettings CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" + )