From 221a7caeeece4a74bd174b550b698bba1130d7b2 Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 13 Nov 2024 13:49:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/db/desktop/V2.10__ddl.sql | 18 +++++++++++++++++- .../mybatis/ExtVisualizationTemplateMapper.xml | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/core/core-backend/src/main/resources/db/desktop/V2.10__ddl.sql b/core/core-backend/src/main/resources/db/desktop/V2.10__ddl.sql index b0aff9073b..73b01f28b2 100644 --- a/core/core-backend/src/main/resources/db/desktop/V2.10__ddl.sql +++ b/core/core-backend/src/main/resources/db/desktop/V2.10__ddl.sql @@ -22,4 +22,20 @@ alter table `core_chart_view` add ext_color longtext comment '颜色维度field'; update visualization_outer_params_target_view_info set target_ds_id = (select ccv.table_id from visualization_outer_params_target_view_info tvi INNER JOIN core_chart_view ccv on tvi.target_view_id = ccv.id) -where target_view_id = (select ccv.id from visualization_outer_params_target_view_info tvi INNER JOIN core_chart_view ccv on tvi.target_view_id = ccv.id) +where target_view_id = (select ccv.id from visualization_outer_params_target_view_info tvi INNER JOIN core_chart_view ccv on tvi.target_view_id = ccv.id); + +DROP TABLE IF EXISTS `core_font`; +CREATE TABLE `core_font` +( + `id` bigint NOT NULL COMMENT 'ID', + `name` varchar(255) NOT NULL COMMENT '字体名称', + `file_name` varchar(255) default NULL COMMENT '文件名称', + `file_trans_name` varchar(255) default NULL COMMENT '文件转换名称', + `is_default` tinyint(1) default 0 COMMENT '是否默认', + `update_time` bigint NOT NULL COMMENT '更新时间', + `is_BuiltIn` tinyint(1) default 0 COMMENT '是否内置', + PRIMARY KEY (`id`) +); +ALTER TABLE `core_font` ADD COLUMN `size` DOUBLE NULL AFTER `is_BuiltIn`; +ALTER TABLE `core_font` ADD COLUMN `size_type` varchar(255) NULL AFTER `size`; +INSERT INTO `core_font` (`id`, `name`, `is_default`, `update_time`, `is_BuiltIn`) VALUES ('1', 'PingFang', '1', '0', '1'); diff --git a/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml b/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml index a69cb292bf..16536f9756 100644 --- a/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml +++ b/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml @@ -55,7 +55,7 @@ vt.SNAPSHOT, vt.use_count, vtcm.category_id, - cor.time as 'recent_use_time' + cor.time as `recent_use_time` FROM visualization_template vt LEFT JOIN visualization_template_category_map vtcm ON vt.id = vtcm.template_id left JOIN core_opt_recent cor on cor.resource_type = 6 and vt.id = cor.resource_name