Skip to content

Commit

Permalink
Merge pull request #167 from Plant-for-the-Planet-org/hotfix-edit-sit…
Browse files Browse the repository at this point in the history
…eAlert-view
  • Loading branch information
sagararyal committed Apr 5, 2024
2 parents d4c431e + 0b83e22 commit 6cf282e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- Update SiteAlert View
CREATE OR REPLACE VIEW view_siteAlert AS
SELECT
"id",
"siteId",
"type",
"latitude",
"longitude",
"eventDate",
"detectedBy",
"confidence"
FROM
"SiteAlert"
WHERE
"deletedAt" IS NULL
AND "eventDate" >= CURRENT_DATE - INTERVAL '30 days';

0 comments on commit 6cf282e

Please sign in to comment.