Merge pull request 'staging' (#337) from staging into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m56s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 5m6s

Reviewed-on: #337
This commit is contained in:
philipp 2024-04-03 08:07:48 +02:00
commit d0bbf8f181

View File

@ -215,12 +215,9 @@ SELECT
b.external b.external
FROM FROM
boat AS b boat AS b
LEFT JOIN
boathouse AS bh ON b.id = bh.boat_id
WHERE WHERE
b.external = false b.external = false
AND b.location_id = (SELECT id FROM location WHERE name = 'Linz') AND b.location_id = (SELECT id FROM location WHERE name = 'Linz')
AND bh.id IS NULL -- This ensures the boat does not have an entry in the boathouse table
ORDER BY ORDER BY
b.name DESC; b.name DESC;
" "