From c8bf150e9cc47882345060b07c67e97351ef6b9b Mon Sep 17 00:00:00 2001 From: fit2cloudrd Date: Wed, 16 Feb 2022 13:39:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dv32=5F=5F1.8.sql?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=8F=8A=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V32__1.8.sql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/src/main/resources/db/migration/V32__1.8.sql b/backend/src/main/resources/db/migration/V32__1.8.sql index 26059ceef2..1a1c8cc3a2 100644 --- a/backend/src/main/resources/db/migration/V32__1.8.sql +++ b/backend/src/main/resources/db/migration/V32__1.8.sql @@ -5,10 +5,10 @@ UPDATE `chart_view` SET `x_axis_ext` = '[]'; INSERT INTO `chart_group` (`id`, `name`, `pid`, `level`, `type`, `create_by`, `create_time`) VALUES ('0', 'i18n_public_chart', 'public_chart', -1, 'history', 'admin', NULL); ALTER TABLE `chart_view` -MODIFY COLUMN `scene_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '场景ID chart_type为privat的时候 是仪表板id' AFTER `title`, +MODIFY COLUMN `scene_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '场景ID chart_type为private的时候 是仪表板id' AFTER `title`, ADD COLUMN `chart_type` varchar(255) NULL DEFAULT 'public' COMMENT '视图类型 public 公共 历史可复用的视图,private 私有 专属某个仪表板' AFTER `style_priority`; -delete from sys_auth_detail where auth_id in(select id from sys_auth where auth_source_type = 'chart'); +delete from sys_auth_detail where auth_id in(select id from sys_auth where auth_source_type = 'chart'); delete from sys_auth where auth_source_type = 'chart'; DROP TRIGGER `new_auth_chart_view`; @@ -16,9 +16,7 @@ DROP TRIGGER `delete_auth_chart_view`; delete from sys_menu where menu_id ='10'; -DROP VIEW -IF - EXISTS `v_auth_model`; +DROP VIEW IF EXISTS `v_auth_model`; CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_auth_model` AS SELECT `sys_user`.`user_id` AS `id`, `sys_user`.`username` AS `name`,