build: v2.4 flyway

This commit is contained in:
CaptainB 2022-11-16 15:01:36 +08:00
parent ac07c6b4c1
commit 5864c5eac3
1 changed files with 16 additions and 1 deletions

View File

@ -1 +1,16 @@
-- v2.4.0 init
--
-- 通知表时间加索引
CREATE INDEX notification_create_time_index
ON notification (create_time);
-- v2-4-init-permission
-- 创建人 liyuhao
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
SELECT UUID(), id, 'PROJECT_TRACK_PLAN:READ+BATCH_DELETE', 'PROJECT_TRACK_PLAN'
FROM `group`
WHERE type = 'PROJECT'
AND `group`.id IN
(SELECT group_id FROM user_group_permission WHERE permission_id = 'PROJECT_TRACK_PLAN:READ');