Skip to content

Commit

Permalink
views: Update augur build metadata date format
Browse files Browse the repository at this point in the history
In seattleflu/augur-build#32, Trevor
requested that encountered date no longer be formatted as a timestamp
but rather a date in YYYY-MM-DD format for the
`shipping.metadata_for_augur_build_v2` view.
  • Loading branch information
kairstenfay committed Jan 22, 2020
1 parent 43cd67d commit 9281730
Show file tree
Hide file tree
Showing 6 changed files with 1,202 additions and 11 deletions.
3 changes: 2 additions & 1 deletion schema/deploy/shipping/views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ create or replace view shipping.reportable_condition_v1 as
order by encountered desc;


drop view shipping.metadata_for_augur_build_v2;
create or replace view shipping.metadata_for_augur_build_v2 as

select sample as strain,
encountered as date,
cast(encountered as date) as date,
'seattle' as region,
-- XXX TODO: Change to PUMA and neighborhoods
residence_census_tract as location,
Expand Down
Loading

0 comments on commit 9281730

Please sign in to comment.