瀏覽代碼

fix: Include dropped and renamed tables in touched tables list

version-14
Aditya Hase 4 年之前
父節點
當前提交
2b1458e3fb
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A55F0FCA0234972
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/database/database.py

+ 1
- 1
frappe/database/database.py 查看文件

@@ -985,7 +985,7 @@ class Database(object):
def log_touched_tables(self, query, values=None):
if values:
query = frappe.safe_decode(self._cursor.mogrify(query, values))
if query.strip().lower().split()[0] in ('insert', 'delete', 'update', 'alter'):
if query.strip().lower().split()[0] in ('insert', 'delete', 'update', 'alter', 'drop', 'rename'):
# single_word_regex is designed to match following patterns
# `tabXxx`, tabXxx and "tabXxx"



Loading…
取消
儲存