added missing v_camp

This commit is contained in:
Jottyfan
2024-03-16 21:30:40 +01:00
parent 5890777686
commit 1ff307b9ed
6 changed files with 49 additions and 5 deletions

View File

@ -4,6 +4,7 @@ begin;
update t_camp set start_booking = '2000-01-01';
alter table t_camp alter column start_booking set not null;
\i views/camp.sql
\i views/version.sql
commit;

View File

@ -31,7 +31,8 @@ with female(used, fk_camp) as (
c.blocked_beds_female,
c.blocked_beds_male,
coalesce(male.used, 0) as used_beds_male,
coalesce(female.used, 0) as used_beds_female
coalesce(female.used, 0) as used_beds_female,
c.start_booking
from public.t_camp c
left join public.t_location l on c.fk_location = l.pk
left join male on male.fk_camp = c.pk