Skip to content

Commit

Permalink
Updated view_siteAlert migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dhakalaashish committed Apr 5, 2024
1 parent f09a833 commit 79f7d04
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_TIMESTAMP - INTERVAL '30 days';

0 comments on commit 79f7d04

Please sign in to comment.