refactor(mariadb/schema): use sql_ddl() method
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
ccc2bdad52
commit
8d540963c8
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ class MariaDBTable(DBTable):
|
|||
query_body = ", ".join(query_parts)
|
||||
query = f"ALTER TABLE `{self.table_name}` {query_body}"
|
||||
# nosemgrep
|
||||
frappe.db.sql(query)
|
||||
frappe.db.sql_ddl(query)
|
||||
|
||||
except Exception as e:
|
||||
if query := locals().get("query"): # this weirdness is to avoid potentially unbounded vars
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue