mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Update migration 202412
- Update api.export_logbook_geojson_point_trip_fn, fix dynamic notes for good
This commit is contained in:
@@ -880,7 +880,7 @@ BEGIN
|
||||
metrics_geojson,
|
||||
'{1, properties}',
|
||||
CASE
|
||||
WHEN (metrics_geojson->1->'properties'->>'notes') IS "" THEN -- it is not null but empty??
|
||||
WHEN (metrics_geojson->1->'properties'->>'notes') = '' THEN -- it is not null but empty??
|
||||
(metrics_geojson->1->'properties' || second_feature_note)::jsonb
|
||||
ELSE
|
||||
metrics_geojson->1->'properties'
|
||||
@@ -892,7 +892,7 @@ BEGIN
|
||||
metrics_geojson,
|
||||
'{-1, properties}',
|
||||
CASE
|
||||
WHEN (metrics_geojson->-1->'properties'->>'notes') IS "" THEN -- it is not null but empty??
|
||||
WHEN (metrics_geojson->-1->'properties'->>'notes') = '' THEN -- it is not null but empty??
|
||||
(metrics_geojson->-1->'properties' || last_feature_note)::jsonb
|
||||
ELSE
|
||||
metrics_geojson->-1->'properties'
|
||||
|
Reference in New Issue
Block a user