From c8119b6092b440c418d8cd1769dde189f074efc9 Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Wed, 15 May 2024 22:09:01 +0200 Subject: [PATCH 1/2] feat: new flyway script to add the new global share permission to sec_permission --- .../V2.15.0.20240515220400_atlas_global_share_permission.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql diff --git a/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql b/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql new file mode 100644 index 000000000..77a75325c --- /dev/null +++ b/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql @@ -0,0 +1,5 @@ +INSERT INTO ${ohdsiSchema}.sec_permission +(value, description) +values +('cohortdefinition:global:share:put', 'special permission (intended for admins) that allows the user to share any cohort with a "global reader role"') +; From 4cf2647aca7f48cb52b6c71486699b231dfbb4fb Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Fri, 17 May 2024 14:15:37 +0200 Subject: [PATCH 2/2] Update src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql --- .../V2.15.0.20240515220400_atlas_global_share_permission.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql b/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql index 77a75325c..5650b504b 100644 --- a/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql +++ b/src/main/resources/db/migration/postgresql/V2.15.0.20240515220400_atlas_global_share_permission.sql @@ -1,5 +1,5 @@ INSERT INTO ${ohdsiSchema}.sec_permission (value, description) values -('cohortdefinition:global:share:put', 'special permission (intended for admins) that allows the user to share any cohort with a "global reader role"') +('artifact:global:share:put', 'special permission (intended for admins) that allows the user to share any artifact with a "global reader role"') ;