Skip to content

Commit

Permalink
Add ODYCIVIL redactions
Browse files Browse the repository at this point in the history
  • Loading branch information
dismantl committed Jul 12, 2021
1 parent bc0f414 commit 5b55615
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions db/sql/redactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,18 @@ CREATE OR REPLACE VIEW redacted.odytraf_defendants
odytraf_defendants.case_number
FROM odytraf_defendants;

REVOKE SELECT ON TABLE public.odycivil_defendants FROM mjcs_ro_redacted;
CREATE OR REPLACE VIEW redacted.odycivil_defendants
AS
SELECT odycivil_defendants.id,
odycivil_defendants.race,
odycivil_defendants.sex,
odycivil_defendants.height,
odycivil_defendants.weight,
odycivil_defendants.city,
odycivil_defendants.state,
odycivil_defendants.zip_code,
odycivil_defendants.case_number
FROM odycivil_defendants;

COMMIT;

0 comments on commit 5b55615

Please sign in to comment.