diff --git a/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql new file mode 100644 index 0000000000000000000000000000000000000000..fcbe0ee932b346b9d9e7638d1e8a82ca545b7865 --- /dev/null +++ b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql @@ -0,0 +1,3 @@ +INSERT IGNORE INTO `channel_authority` (`channel_uuid`, `type`, `uuid`, `action`) SELECT a.`uuid`, 'common', 'alluser', 'view' FROM channel a LEFT JOIN `channel_authority` b ON b.`channel_uuid` = a.`uuid` AND b.`action` = 'view' WHERE b.`channel_uuid` IS NULL; + +INSERT IGNORE INTO `catalog_authority` (`catalog_uuid`, `type`, `uuid`, `action`) SELECT a.`uuid`, 'common', 'alluser', 'view' FROM catalog a LEFT JOIN `catalog_authority` b ON b.`catalog_uuid` = a.`uuid` AND b.`action` = 'view' WHERE b.`catalog_uuid` IS NULL; diff --git a/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json new file mode 100644 index 0000000000000000000000000000000000000000..6608c91f6abeecbafc37bed662c32f092df055aa --- /dev/null +++ b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json @@ -0,0 +1,10 @@ +{ + "content":[ + { + "type":"新增功能", + "detail":[ + {"msg":"1.通过changelog刷新channel表和channel_authority表数据"} + ] + } + ] +}