mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Update api.export_moorages_geojson_fn, add stay code
This commit is contained in:
@@ -316,7 +316,7 @@ CREATE FUNCTION api.export_moorages_geojson_fn(OUT geojson JSONB) RETURNS JSONB
|
|||||||
json_agg(ST_AsGeoJSON(m.*)::JSON) as moorages_geojson
|
json_agg(ST_AsGeoJSON(m.*)::JSON) as moorages_geojson
|
||||||
FROM
|
FROM
|
||||||
( SELECT
|
( SELECT
|
||||||
id,name,
|
id,name,stay_code,
|
||||||
EXTRACT(DAY FROM justify_hours ( stay_duration )) AS Total_Stay,
|
EXTRACT(DAY FROM justify_hours ( stay_duration )) AS Total_Stay,
|
||||||
geog
|
geog
|
||||||
FROM api.moorages
|
FROM api.moorages
|
||||||
|
Reference in New Issue
Block a user