Fixed owner searching.

This commit is contained in:
Patrick Fic
2020-02-19 14:39:49 -08:00
parent f49f460a66
commit 2efbd48275
12 changed files with 46 additions and 13 deletions

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,11 @@
- args:
cascade: true
sql: "CREATE FUNCTION search_owner(search text)\r\nRETURNS SETOF owners AS $$\r\n
\ SELECT *\r\n FROM owners\r\n WHERE\r\n search <% (ownr_fn ||
' ' || ownr_ln)\r\n ORDER BY\r\n similarity(search, (ownr_fn || ' '
|| ownr_ln)) DESC\r\n LIMIT 5;\r\n$$ LANGUAGE sql STABLE;"
type: run_sql
- args:
name: search_owner
schema: public
type: track_function