added missing v_camp
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user