Add report ID suggestion to status page
This commit is contained in:
parent
7032f8e26b
commit
f3221ec315
6 changed files with 317 additions and 27 deletions
22
db/sql/publicreport_publicid_suggestion.sql
Normal file
22
db/sql/publicreport_publicid_suggestion.sql
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
-- PublicreportPublicIDSuggestion
|
||||
SELECT
|
||||
'nuisance' AS table_name,
|
||||
public_id,
|
||||
location
|
||||
FROM
|
||||
publicreport.nuisance
|
||||
WHERE
|
||||
public_id LIKE $1
|
||||
|
||||
UNION ALL
|
||||
|
||||
SELECT
|
||||
'pool' AS table_name,
|
||||
public_id,
|
||||
location
|
||||
FROM
|
||||
publicreport.pool
|
||||
WHERE
|
||||
public_id LIKE $1
|
||||
ORDER BY
|
||||
public_id;
|
||||
Loading…
Add table
Add a link
Reference in a new issue