-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log entry added, non-closed resources are correctly handled, file hea…
…der collections are stateless, hard-coded constants deleted relying on the application configuration file Migration scripts combined
- Loading branch information
1 parent
cd0f48a
commit 831e3e7
Showing
5 changed files
with
37 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ration/postgresql/V2.14.0.20231206190600__fixing_statistics_enpoint_permission_method.sql
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...2112232__source_execution_satatistics.sql → ..._access_trends_statistics_permissions.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
INSERT INTO ${ohdsiSchema}.sec_permission(id, value, description) VALUES | ||
(nextval('${ohdsiSchema}.sec_permission_id_seq'), 'statistic:executions:get', 'Source execution statistics permission'); | ||
(nextval('${ohdsiSchema}.sec_permission_id_seq'), 'statistic:executions:post', 'Source execution statistics permission'); | ||
|
||
INSERT INTO ${ohdsiSchema}.sec_permission(id, value, description) VALUES | ||
(nextval('${ohdsiSchema}.sec_permission_id_seq'), 'statistic:accesstrends:post', 'Access trends statistics permission'); | ||
|
||
INSERT INTO ${ohdsiSchema}.sec_role_permission(id, role_id, permission_id) | ||
SELECT nextval('${ohdsiSchema}.sec_role_permission_sequence'), sr.id, sp.id | ||
FROM ${ohdsiSchema}.sec_permission SP, ${ohdsiSchema}.sec_role sr | ||
WHERE sp.value IN ('statistic:executions:get') AND sr.name IN ('admin'); | ||
WHERE sp.value IN ('statistic:executions:post') AND sr.name IN ('admin'); | ||
|
||
INSERT INTO ${ohdsiSchema}.sec_role_permission(id, role_id, permission_id) | ||
SELECT nextval('${ohdsiSchema}.sec_role_permission_sequence'), sr.id, sp.id | ||
FROM ${ohdsiSchema}.sec_permission SP, ${ohdsiSchema}.sec_role sr | ||
WHERE sp.value IN ('statistic:accesstrends:post') AND sr.name IN ('admin'); | ||
WHERE sp.value IN ('statistic:accesstrends:post') AND sr.name IN ('admin'); |