Skip to content

Commit b882a33

Browse files
committed
feat: add 'folder_id' field to resource mapping queries in SQL files
1 parent 509c5ee commit b882a33

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

apps/system_manage/sql/list_resource_mapping.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ WITH source_data_cte AS (SELECT 'APPLICATION' as source_type,
55
"user_id",
66
"workspace_id",
77
"icon",
8-
"type"
8+
"type",
9+
"folder_id"
910
FROM application
1011
UNION ALL
1112
SELECT 'KNOWLEDGE' as source_type,
@@ -14,7 +15,8 @@ WITH source_data_cte AS (SELECT 'APPLICATION' as source_type,
1415
"desc",
1516
"user_id",
1617
"workspace_id",
17-
"type"::text as "icon" , "type"::text as "type"
18+
"type"::text as "icon" , "type"::text as "type",
19+
"folder_id"
1820
FROM knowledge)
1921
SELECT rm.*,
2022
sdc.*,

apps/system_manage/sql/list_resource_mapping_ee.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ WITH source_data_cte AS (SELECT 'APPLICATION' as source_type,
55
"user_id",
66
"workspace_id",
77
"icon",
8-
"type"
8+
"type",
9+
"folder_id"
910
FROM application
1011
UNION ALL
1112
SELECT 'KNOWLEDGE' as source_type,
@@ -14,7 +15,7 @@ WITH source_data_cte AS (SELECT 'APPLICATION' as source_type,
1415
"desc",
1516
"user_id",
1617
"workspace_id",
17-
"type"::text as "icon" , "type"::text as "type"
18+
"type"::text as "icon" , "type"::text as "type", "folder_id"
1819
FROM knowledge)
1920
SELECT rm.*,
2021
sdc.*,

0 commit comments

Comments
 (0)