Use the queries we asked the user confirmation for
Copied from #16750 by myself (William) Signed-off-by: Saksham Gupta <shucon01@gmail.com>
This commit is contained in:
parent
ff2ddb0c1b
commit
21566d4bb5
@ -384,7 +384,7 @@
|
||||
<li class="list-group-item">
|
||||
{{ link_or_button(
|
||||
url('/sql', url_params|merge({
|
||||
'sql_query': 'TRUNCATE TABLE ' ~ backquote(table),
|
||||
'sql_query': 'TRUNCATE TABLE ' ~ backquote(db) ~ '.' ~ backquote(table),
|
||||
'goto': url('/table/structure'),
|
||||
'reload': true,
|
||||
'message_to_show': 'Table %s has been emptied.'|trans|format(table)|e
|
||||
@ -401,7 +401,7 @@
|
||||
<li class="list-group-item">
|
||||
{{ link_or_button(
|
||||
url('/sql', url_params|merge({
|
||||
'sql_query': 'DROP TABLE ' ~ backquote(table),
|
||||
'sql_query': 'DROP TABLE ' ~ backquote(db) ~ '.' ~ backquote(table),
|
||||
'goto': url('/database/operations'),
|
||||
'reload': true,
|
||||
'purge': true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user