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:
Saksham Gupta 2021-07-20 21:24:18 +02:00 committed by William Desportes
parent ff2ddb0c1b
commit 21566d4bb5
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

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