From 18f0a9e65ce2c8cf7b65ebe54a6165caf3ee9ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E8=BE=B0=E8=BD=A9?= Date: Mon, 24 Apr 2023 20:41:18 +0800 Subject: [PATCH] * Modify dataview -> chart. --- module/upgrade/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 8054ed6250..f64c21a549 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -9127,12 +9127,13 @@ class upgradeModel extends model if(!$sql) return array(); $this->loadModel('dataview'); + $this->loadModel('chart'); $columns = $this->dataview->getColumns($sql); $columnFields = array(); foreach($columns as $column => $type) $columnFields[$column] = $column; - $tableAndFields = $this->dataview->getTables($sql); + $tableAndFields = $this->chart->getTables($sql); $tables = $tableAndFields['tables']; $fields = $tableAndFields['fields'];