nidus-sync/db/sql/publicreport_publicid_suggestion.bob.sql
Eli Ribble e932c2c473
Rework publicreport addressing
This adds the ability to link a proper address in the database to the
report and harmonizes the field names with the address table. It also
migrates away from mapbox entirely.

And I fixed the "pool" naming for the publicreports, which are supposed
to be the more generic 'water'.
2026-03-09 18:02:22 +00:00

25 lines
430 B
SQL

-- Code generated by BobGen psql v0.42.5. DO NOT EDIT.
-- This file is meant to be re-generated in place and/or deleted at any time.
-- PublicreportPublicIDSuggestion
SELECT
'nuisance' AS table_name,
public_id,
location
FROM
publicreport.nuisance
WHERE
public_id LIKE $1
UNION ALL
SELECT
'water' AS table_name,
public_id,
location
FROM
publicreport.water
WHERE
public_id LIKE $2
ORDER BY
public_id;