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.
This commit is contained in:
Abhishek Kedar 2019-01-29 10:49:28 +05:30 committed by Rushabh Mehta
parent f537d75946
commit 552ee2f36b

View file

@ -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')