Use full text search instead of ilike for search functionality

This commit is contained in:
thiloho
2024-08-14 21:37:19 +02:00
parent 0e3fb96dda
commit 3eb05da564
5 changed files with 90 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ DECLARE
_allowed_mimetypes TEXT[] := ARRAY['image/png', 'image/svg+xml', 'image/jpeg', 'image/webp'];
_max_file_size INT := 5 * 1024 * 1024;
BEGIN
IF octet_length($1) = 0 THEN
IF OCTET_LENGTH($1) = 0 THEN
RAISE invalid_parameter_value
USING message = 'No file data was provided';
END IF;