Browse Source

fix: Include dropped and renamed tables in touched tables list

(cherry picked from commit 2b1458e3fb)
version-14
Aditya Hase 4 years ago
committed by mergify-bot
parent
commit
462e3b83b5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/database/database.py

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

@@ -983,7 +983,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