-
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 one column
- Loading branch information
1 parent
ab0f1ba
commit 5546fc8
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
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,20 @@ | ||
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( | ||
id, | ||
motebehov_uuid, | ||
opprettet_dato, | ||
opprettet_av, | ||
virksomhetsnummer, | ||
har_motebehov, | ||
tildelt_enhet, | ||
behandlet_tidspunkt, | ||
behandlet_veileder_ident, | ||
skjematype, | ||
sm_fnr, | ||
opprettet_av_fnr) | ||
ON motebehov to "[email protected]"; |