Skip to content

Commit 170b1cf

Browse files
[Optimization] Optimization sql file (#4164)
Co-authored-by: Zzm0809 <[email protected]> Co-authored-by: GH Action - Upstream Sync <[email protected]>
1 parent d8b1a75 commit 170b1cf

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

dinky-admin/src/main/resources/db/migration/postgresql/V20241219.1.2.1__release.sql renamed to dinky-admin/src/main/resources/db/migration/postgresql/V20250301.1.3.0__release.sql

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ CREATE UNIQUE INDEX IF NOT EXISTS task_id_current_version_idx ON public.dinky_ap
5555
CREATE UNIQUE INDEX IF NOT EXISTS tenant_id_submitter_union_idx ON public.dinky_approval (submitter, tenant_id);
5656
CREATE UNIQUE INDEX IF NOT EXISTS tenant_id_reviewer_union_idx ON public.dinky_approval (reviewer, tenant_id);
5757

58+
CREATE OR REPLACE TRIGGER set_update_time_dinky_approval
59+
BEFORE UPDATE
60+
ON public.dinky_approval
61+
FOR EACH ROW
62+
EXECUTE FUNCTION trigger_set_timestamp();
63+
5864
-- ----------------------------
5965
-- approval menu
6066
-- ----------------------------
@@ -64,12 +70,12 @@ INSERT INTO public.dinky_sys_menu(id, parent_id, name, path, component, perms, i
6470
VALUES (176, 4, '审批发布', '/auth/approval', './AuthCenter/Approval', 'auth:approval:operate', 'AuditOutlined', 'C', 0, 169,
6571
'2024-12-10 12:13:00', '2024-12-10 12:13:00', null);
6672

67-
insert into `dinky_sys_menu` (`id`, `parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`,
68-
`order_num`, `create_time`, `update_time`, `note`)
73+
insert into public.dinky_sys_menu (id, parent_id, name, path, component, perms, icon, type, display,
74+
order_num, create_time, update_time, note)
6975
values (177, 24, '审批配置', '/settings/globalsetting/approval', null, 'settings:globalsetting:approval',
7076
'SettingOutlined', 'F', 0, 170, '2024-12-30 23:45:30', '2024-12-30 23:45:30', null);
7177

72-
insert into `dinky_sys_menu` (`id`, `parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`,
73-
`order_num`, `create_time`, `update_time`, `note`)
78+
insert into public.dinky_sys_menu (id, parent_id, name, path, component, perms, icon, type, display,
79+
order_num, create_time, update_time, note)
7480
values (178, 177, '编辑', '/settings/globalsetting/approval/edit', null, 'settings:globalsetting:approval:edit',
7581
'EditOutlined', 'F', 0, 171, '2024-12-30 23:45:30', '2024-12-30 23:45:30', null);

0 commit comments

Comments
 (0)