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:
parent
f537d75946
commit
552ee2f36b
1 changed files with 1 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue