From c5486b4c1be2e3a29a227794b6b1e65e9d00af53 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 20 Dec 2021 12:12:15 +0800 Subject: [PATCH 1/2] 1 --- webapp/controller/ToolsController.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 5ab0058a..05f77d08 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -25,10 +25,11 @@ class ToolsController extends BaseController { $tables = $conn->execQueryAsArray('show tables;'); foreach ($tables as $table) { $tblName = $table[0]; - $conn->execScript("DELETE FROM {$tblName};", - arary()); + $conn->execScript("DROP TABLE {$tblName};", + array()); } } + echo '111'; } } From 2f0cf183ffb06de4f9bdd1c212906d543425b376 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 20 Dec 2021 13:41:34 +0800 Subject: [PATCH 2/2] 1 --- webapp/controller/ToolsController.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/webapp/controller/ToolsController.class.php b/webapp/controller/ToolsController.class.php index 05f77d08..20af21a6 100644 --- a/webapp/controller/ToolsController.class.php +++ b/webapp/controller/ToolsController.class.php @@ -29,7 +29,6 @@ class ToolsController extends BaseController { array()); } } - echo '111'; } }