Skip to content

Commit

Permalink
Update migration 202412
Browse files Browse the repository at this point in the history
- Update api.export_logbook_geojson_point_trip_fn, fix dynamic notes for good
  • Loading branch information
xbgmsharp committed Jan 8, 2025
1 parent 1b57641 commit e5491ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initdb/99_migrations_202412.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit e5491ae

Please sign in to comment.