diff --git a/database/100-create-api-views.sql b/database/100-create-api-views.sql index acb895b48..cc0f39c4c 100644 --- a/database/100-create-api-views.sql +++ b/database/100-create-api-views.sql @@ -923,7 +923,7 @@ $$ -- ONLY TOP LEVEL ORGANISATIONS organisation.parent IS NULL AND - organisation.slug ILIKE CONCAT('%', query, '%') OR organisation."name" ILIKE CONCAT('%', query, '%') + (organisation.slug ILIKE CONCAT('%', query, '%') OR organisation."name" ILIKE CONCAT('%', query, '%')) ; $$; diff --git a/docker-compose.yml b/docker-compose.yml index ab5aeb2ac..0727e18f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ version: "3.0" services: database: build: ./database - image: rsd/database:2.2.1 + image: rsd/database:2.2.2 ports: # enable connection from outside (development mode) - "5432:5432"