feat(education): complete Flyway migration and atomic submit
This commit is contained in:
15
sql/postgresql/education/000-education-seed.sql
Normal file
15
sql/postgresql/education/000-education-seed.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- =============================================
|
||||
-- Education 模块种子数据 (PostgreSQL)
|
||||
-- 菜单 ID 范围:6800-6899
|
||||
-- 权限标识前缀:education:
|
||||
-- 可重复执行;角色授权由管理员按租户完成
|
||||
-- =============================================
|
||||
|
||||
INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted)
|
||||
SELECT 6800, '教育管理', '', 1, 50, 0, '/education', 'ep:school', NULL, NULL, 0, true, true, true, 'admin', NOW(), 'admin', NOW(), false
|
||||
WHERE NOT EXISTS (SELECT 1 FROM system_menu WHERE id = 6800);
|
||||
|
||||
INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted)
|
||||
SELECT 6801, '能力查询', 'education:capability', 3, 1, 6800, '', '', '', NULL, 0, true, true, true, 'admin', NOW(), 'admin', NOW(), false
|
||||
WHERE EXISTS (SELECT 1 FROM system_menu WHERE id = 6800 AND path = '/education' AND deleted = false)
|
||||
AND NOT EXISTS (SELECT 1 FROM system_menu WHERE id = 6801);
|
||||
Reference in New Issue
Block a user