diff --git a/src/main/resources/neatlogic/resources/process/changelog/2024-07-26/neatlogic_tenant.sql b/src/main/resources/neatlogic/resources/process/changelog/2024-07-26/neatlogic_tenant.sql new file mode 100644 index 0000000000000000000000000000000000000000..bf85c238fb4a2dee82c39395bc3a598d17f9414f --- /dev/null +++ b/src/main/resources/neatlogic/resources/process/changelog/2024-07-26/neatlogic_tenant.sql @@ -0,0 +1,5 @@ +INSERT IGNORE INTO `channel_authority` (`channel_uuid`, `type`, `uuid`, `action`) SELECT `uuid`, 'common', 'alluser', 'view' FROM channel; + +INSERT IGNORE INTO `catalog_authority` (`catalog_uuid`, `type`, `uuid`, `action`) SELECT `uuid`, 'common', 'alluser', 'view' FROM catalog; + +UPDATE `channel` SET `is_active_priority` = 0, `is_display_priority` = 0 WHERE `uuid` NOT IN (SELECT DISTINCT `channel_uuid` FROM `channel_priority`); \ No newline at end of file diff --git a/src/main/resources/neatlogic/resources/process/changelog/2024-07-26/version.json b/src/main/resources/neatlogic/resources/process/changelog/2024-07-26/version.json new file mode 100644 index 0000000000000000000000000000000000000000..6608c91f6abeecbafc37bed662c32f092df055aa --- /dev/null +++ b/src/main/resources/neatlogic/resources/process/changelog/2024-07-26/version.json @@ -0,0 +1,10 @@ +{ + "content":[ + { + "type":"新增功能", + "detail":[ + {"msg":"1.通过changelog刷新channel表和channel_authority表数据"} + ] + } + ] +}