added teacher min age

This commit is contained in:
jotty
2025-04-23 16:56:08 +02:00
parent 724af22d9c
commit dbb4e60815
35 changed files with 1053 additions and 1550 deletions

View File

@ -6,6 +6,7 @@ create table public.t_camp (
fk_location integer not null references public.t_location(pk),
min_age integer not null,
max_age integer not null,
min_teacherage integer,
price text,
countries text,
fk_document integer references public.t_document(pk),

View File

@ -0,0 +1,11 @@
begin;
drop view public.v_dsgvo_delete_candidate;
drop view public.v_camp;
alter table t_camp add column min_teacherage integer;
\i views/camp.sql
\i views/dsgvo_delete_candidate.sql
\i views/version.sql
commit;

View File

@ -22,6 +22,7 @@ with female(used, fk_camp) as (
l.name as location_name,
c.min_age,
c.max_age,
coalesce(c.min_teacherage, c.max_age + 2) as min_teacherage,
l.url,
c.price,
c.countries,

View File

@ -1,2 +1,2 @@
create or replace view public.v_version as
select '2024.10.24'::text as version;
select '2025-04-23'::text as version;