Skip to content

Commit

Permalink
Give read access on motebehov to DVH except one column
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Jan 22, 2024
1 parent 5546fc8 commit 1df73d1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ GRANT SELECT(
sm_fnr,
opprettet_av_fnr)
ON motebehov to "[email protected]";

GRANT SELECT ON MOTEBEHOV_DVH TO "[email protected]";
25 changes: 25 additions & 0 deletions src/main/resources/db/migration/V1_9__view_dvh.sql
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;

0 comments on commit 1df73d1

Please sign in to comment.