瀏覽代碼

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.
version-14
Abhishek Kedar 6 年之前
committed by Rushabh Mehta
父節點
當前提交
552ee2f36b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      frappe/commands/utils.py

+ 1
- 0
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')


Loading…
取消
儲存