From 552ee2f36b4feb2f3039f3bf278d5525468f33e3 Mon Sep 17 00:00:00 2001 From: Abhishek Kedar <44434910+AKedar21@users.noreply.github.com> Date: Tue, 29 Jan 2019 10:49:28 +0530 Subject: [PATCH] Enabled --safe-updates in bench mariadb (#6752) * Enabled --safe-updates in bench mariadb * Enabled mysql --safe-updates in bench mariadb This will ensure that --safe-updates is enabled in bench mariadb which will avoid accidental updates in the table if where or limit clause is missing in the SQL query. --- frappe/commands/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/commands/utils.py b/frappe/commands/utils.py index 984d078dae..b43d2db01e 100644 --- a/frappe/commands/utils.py +++ b/frappe/commands/utils.py @@ -343,6 +343,7 @@ def mariadb(context): frappe.conf.db_name, '-h', frappe.conf.db_host or "localhost", '--pager=less -SFX', + '--safe-updates', "-A"]) @click.command('postgres')