Skip to content

Commit

Permalink
#1018 change to vds schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielwol authored Jul 25, 2024
1 parent 50cd40b commit 2fb1907
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions volumes/vds/sql/views/create-view-vds_status_dashboard.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DROP VIEW ckousin.vds_dashboard_data;
CREATE OR REPLACE VIEW ckousin.vds_dashboard_data AS
DROP VIEW vds.vds_dashboard_data;
CREATE OR REPLACE VIEW vds.vds_dashboard_data AS

WITH last_active AS (
SELECT
Expand Down Expand Up @@ -36,7 +36,7 @@ JOIN last_active AS la USING (detector_id)
WHERE di.division_id = 2
ORDER BY di.detector_id, la.last_active DESC;

ALTER TABLE ckousin.vds_dashboard_data OWNER TO ckousin;
ALTER TABLE vds.vds_dashboard_data OWNER TO ckousin;

GRANT SELECT ON TABLE ckousin.vds_dashboard_data TO bdit_humans;
GRANT ALL ON TABLE ckousin.vds_dashboard_data TO ckousin;
GRANT SELECT ON TABLE vds.vds_dashboard_data TO bdit_humans;
GRANT ALL ON TABLE vds.vds_dashboard_data TO ckousin;

0 comments on commit 2fb1907

Please sign in to comment.