Skip to content

Commit

Permalink
drop view option
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Mar 10, 2022
1 parent 7ce3ec2 commit 50d0467
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions core/src/main/resources/db/util/views.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
drop view user_request_view;
create or replace view user_request_view as
select user_request.unique_qrd_request_id,
user_request.request_date,
Expand All @@ -23,7 +24,6 @@ select user_request.unique_qrd_request_id,
qc.tags,
qc.title,
qc.description,
access_control.email,
cl.country,
cl.state,
cl.district,
Expand All @@ -34,7 +34,6 @@ select user_request.unique_qrd_request_id,
cl.number_of_times_looked_up
from user_request
join qr_code qc on user_request.qr_code_id = qc.id
join access_control on qc.id = access_control.qr_code_id
left outer join coded_location cl on user_request.coded_location_id = cl.id;

GRANT SELECT ON ALL TABLES IN SCHEMA public TO reports;
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package org.catalysts.commengage.scheduler;

import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.extern.slf4j.Slf4j;
import org.catalysts.commengage.config.AppConfig;
import org.catalysts.commengage.domain.CodedLocation;
import org.catalysts.commengage.domain.fes.FESReverseGeoResponse;
import org.catalysts.commengage.domain.fes.FESReverseGeoSuccessResponse;
import org.catalysts.commengage.repository.CodedLocationRepository;
import org.catalysts.commengage.repository.FESReverseGeoRepository;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down

0 comments on commit 50d0467

Please sign in to comment.