From c5486b4c1be2e3a29a227794b6b1e65e9d00af53 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 20 Dec 2021 12:12:15 +0800 Subject: [PATCH] 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 5ab0058..05f77d0 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'; } }