fix: only run patch for MariaDB (#31891)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
49e4220961
commit
d1870b745e
1 changed files with 4 additions and 1 deletions
|
|
@ -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;"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue