From 337f48e3f09f3b491b05f8f32d9d9cef59dec2ff Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 26 Apr 2024 10:13:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=87=E6=A1=88=E5=92=8Cflyway?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V64__1.18.19_export_task.sql | 10 +++++++++- .../src/main/resources/i18n/messages_en_US.properties | 1 + .../src/main/resources/i18n/messages_zh_CN.properties | 1 + .../src/main/resources/i18n/messages_zh_TW.properties | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/core/backend/src/main/resources/db/migration/V64__1.18.19_export_task.sql b/core/backend/src/main/resources/db/migration/V64__1.18.19_export_task.sql index b5ba8cbe25..7828ff422f 100644 --- a/core/backend/src/main/resources/db/migration/V64__1.18.19_export_task.sql +++ b/core/backend/src/main/resources/db/migration/V64__1.18.19_export_task.sql @@ -39,4 +39,12 @@ where `county_code` = '156330103'; UPDATE `area_mapping_global` set `county_code` = '156330114', `county_name` = '钱塘区' -where `county_code` = '156330104'; \ No newline at end of file +where `county_code` = '156330104'; + + +INSERT INTO `sys_auth_detail` (`id`, `auth_id`, `privilege_name`, `privilege_type`, `privilege_value`, `privilege_extend`, `remark`, `create_user`, `create_time`, `update_time`, `copy_from`, `copy_id`) VALUES ('data_fill_write', 'data_fill', 'i18n_auth_write', 2, 0, 'write', '基础权限-写入', 'system', NULL, NULL, NULL, NULL); + +delete sys_auth_detail,sys_auth from sys_auth_detail INNER JOIN sys_auth on sys_auth.id = sys_auth_detail.auth_id +where sys_auth.auth_source_type ='data_fill'; + +delete from sys_auth where auth_source_type ='data_fill'; \ No newline at end of file diff --git a/core/backend/src/main/resources/i18n/messages_en_US.properties b/core/backend/src/main/resources/i18n/messages_en_US.properties index 12654fe7d6..a0b298f1e1 100644 --- a/core/backend/src/main/resources/i18n/messages_en_US.properties +++ b/core/backend/src/main/resources/i18n/messages_en_US.properties @@ -46,6 +46,7 @@ \u7528\u6237key=User Key i18n_auth_view=View i18n_auth_use=Use +i18n_auth_write=Write i18n_auth_export=Export i18n_auth_manage=Manage i18n_auth_grant=Grant diff --git a/core/backend/src/main/resources/i18n/messages_zh_CN.properties b/core/backend/src/main/resources/i18n/messages_zh_CN.properties index ff7b9e6490..633e80b027 100644 --- a/core/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/core/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -46,6 +46,7 @@ \u7528\u6237key=\u7528\u6237key i18n_auth_view=\u67E5\u770B i18n_auth_use=\u4F7F\u7528 +i18n_auth_write=\u5199\u5165 i18n_auth_export=\u5BFC\u51FA i18n_auth_manage=\u7BA1\u7406 i18n_auth_grant=\u6388\u6743 diff --git a/core/backend/src/main/resources/i18n/messages_zh_TW.properties b/core/backend/src/main/resources/i18n/messages_zh_TW.properties index d2eeab8433..dd9c63c202 100644 --- a/core/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/core/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -45,6 +45,7 @@ \u7528\u6237key=\u7528\u6236key i18n_auth_view=\u67E5\u770B i18n_auth_use=\u4F7F\u7528 +i18n_auth_write=\u5BEB\u5165 i18n_auth_export=\u5C0E\u51FA i18n_auth_manage=\u7BA1\u7406 i18n_auth_grant=\u6388\u6B0A