-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give read access on motebehov to DVH except two columns (#292)
- Loading branch information
1 parent
ab0f1ba
commit 91387bc
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/main/resources/db/migration/R__grant_to_cloudsqliamuser.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,3 +1,7 @@ | ||
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM cloudsqliamuser; | ||
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM "[email protected]"; | ||
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM "[email protected]"; | ||
|
||
GRANT SELECT ON ALL TABLES IN SCHEMA public TO cloudsqliamuser; | ||
|
||
GRANT SELECT ON MOTEBEHOV_DVH TO "[email protected]"; |
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,25 @@ | ||
CREATE VIEW MOTEBEHOV_DVH ( | ||
motebehov_uuid, | ||
opprettet_dato, | ||
opprettet_av, | ||
virksomhetsnummer, | ||
har_motebehov, | ||
tildelt_enhet, | ||
behandlet_tidspunkt, | ||
behandlet_veileder_ident, | ||
skjematype, | ||
sm_fnr, | ||
opprettet_av_fnr | ||
) AS SELECT | ||
motebehov_uuid, | ||
opprettet_dato, | ||
opprettet_av, | ||
virksomhetsnummer, | ||
har_motebehov, | ||
tildelt_enhet, | ||
behandlet_tidspunkt, | ||
behandlet_veileder_ident, | ||
skjematype, | ||
sm_fnr, | ||
opprettet_av_fnr | ||
FROM MOTEBEHOV; |