added teacher min age
This commit is contained in:
@ -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),
|
||||
|
11
src/main/resources/upgrade_2025-04-23.sql
Normal file
11
src/main/resources/upgrade_2025-04-23.sql
Normal 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;
|
@ -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,
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user