-
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.
Browse files
Browse the repository at this point in the history
Co-authored-by: Sergey Suvorov <[email protected]> (cherry picked from commit 8b2dd76)
- Loading branch information
1 parent
8f1ea5e
commit 611295a
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...main/resources/db/migration/postgresql/V2.8.1.20210226100460__evidence_get_permission.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
INSERT INTO ${ohdsiSchema}.sec_permission (id, value, description) | ||
SELECT nextval('${ohdsiSchema}.sec_permission_id_seq'),'evidence:*:drugconditionpairs:post','Get drug condition pairs information'; | ||
|
||
INSERT INTO ${ohdsiSchema}.sec_role_permission (role_id, permission_id) | ||
SELECT sr.id, sp.id | ||
FROM ${ohdsiSchema}.sec_permission sp, ${ohdsiSchema}.sec_role sr | ||
WHERE sp."value" in | ||
( | ||
'evidence:*:drugconditionpairs:post' | ||
) | ||
AND sr.name IN ('Atlas users'); |
11 changes: 11 additions & 0 deletions
11
src/main/resources/db/migration/sqlserver/V2.8.1.20210226100460__evidence_get_permission.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
INSERT INTO ${ohdsiSchema}.sec_permission (id, value, description) | ||
SELECT NEXT VALUE FOR ${ohdsiSchema}.sec_permission_id_seq,'evidence:*:drugconditionpairs:post','Get drug condition pairs information'; | ||
|
||
INSERT INTO ${ohdsiSchema}.sec_role_permission (role_id, permission_id) | ||
SELECT sr.id, sp.id | ||
FROM ${ohdsiSchema}.sec_permission sp, ${ohdsiSchema}.sec_role sr | ||
WHERE sp."value" in | ||
( | ||
'evidence:*:drugconditionpairs:post' | ||
) | ||
AND sr.name IN ('Atlas users'); |