Make search queries case insensitive

This commit is contained in:
2022-03-14 19:59:30 +00:00
committed by Gitea
parent 6a71d9643c
commit 87b78e7b67
6 changed files with 6 additions and 6 deletions

View File

@ -151,7 +151,7 @@ const searchAccounts = `-- name: SearchAccounts :many
SELECT accounts.id, accounts.budget_id, accounts.name, 'account' as type FROM accounts
WHERE accounts.budget_id = $1
AND accounts.is_open = TRUE
AND accounts.name LIKE $2
AND accounts.name ILIKE $2
ORDER BY accounts.name
`