Browse Source

Merge pull request #12836 from adityahase/fix-touched-tables-drop

fix: Include dropped and renamed tables in touched tables list
version-14
mergify[bot] 4 years ago
committed by GitHub
parent
commit
6f87ff7cb2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/database/database.py

+ 1
- 1
frappe/database/database.py View File

@@ -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…
Cancel
Save