diff --git a/report-core/src/main/resources/db/migration/V1.0.16__update_admin_authority.sql b/report-core/src/main/resources/db/migration/V1.0.16__update_admin_authority.sql new file mode 100644 index 00000000..85c9b928 --- /dev/null +++ b/report-core/src/main/resources/db/migration/V1.0.16__update_admin_authority.sql @@ -0,0 +1,5 @@ +-- 补充admin对于execl表格权限 + +INSERT INTO `aj_report`.`access_role_authority`(`role_code`,`target`,`action`) SELECT "root","excelManage","insert" FROM DUAL WHERE NOT EXISTS(SELECT `role_code`,`target`,`action` FROM `aj_report`.`access_role_authority` WHERE `role_code`="root" AND `target`="excelManage" AND `action`="insert"); + +INSERT INTO `aj_report`.`access_role_authority`(`role_code`,`target`,`action`) SELECT "root","excelManage","update" FROM DUAL WHERE NOT EXISTS(SELECT `role_code`,`target`,`action` FROM `aj_report`.`access_role_authority` WHERE `role_code`="root" AND `target`="excelManage" AND `action`="update");