diff --git a/module/install/model.php b/module/install/model.php index 9617540258..2250f1ebd7 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -388,9 +388,10 @@ class installModel extends model /* Prepare built-in sqls of bi. */ $chartSQLs = $this->bi->prepareBuiltinChartSQL(); $pivotSQLs = $this->bi->prepareBuiltinPivotSQL(); + $metricSQLs = $this->bi->prepareBuiltinMetricSQL(); $screenSQLs = $this->bi->prepareBuiltinScreenSQL(); - $insertTables = array_merge($chartSQLs, $pivotSQLs, $screenSQLs); + $insertTables = array_merge($chartSQLs, $pivotSQLs, $metricSQLs, $screenSQLs); try { diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 0e103c8c4e..187684b717 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -8774,9 +8774,10 @@ class upgradeModel extends model /* Prepare built-in sqls of bi. */ $chartSQLs = $this->bi->prepareBuiltinChartSQL('update'); $pivotSQLs = $this->bi->prepareBuiltinPivotSQL('update'); + $metricSQLs = $this->bi->prepareBuiltinMetricSQL('update'); $screenSQLs = $this->bi->prepareBuiltinScreenSQL('update'); - $upgradeTables = array_merge($chartSQLs, $pivotSQLs, $screenSQLs); + $upgradeTables = array_merge($chartSQLs, $pivotSQLs, $metricSQLs, $screenSQLs); try {