added start_booking in t_camp, see #14

This commit is contained in:
Jottyfan
2024-03-16 21:18:13 +01:00
parent a8082842c6
commit 5890777686
22 changed files with 120 additions and 37 deletions

View File

@ -14,5 +14,6 @@ create table public.t_camp (
beds_male integer not null default 0,
beds_female integer not null default 0,
blocked_beds_male integer not null default 0,
blocked_beds_female integer not null default 0
blocked_beds_female integer not null default 0,
start_booking timestamp without time zone not null
);

View File

@ -1,6 +0,0 @@
begin;
\i views/camp.sql
\i views/version.sql
commit;

View File

@ -0,0 +1,9 @@
begin;
alter table t_camp add column start_booking timestamp without time zone;
update t_camp set start_booking = '2000-01-01';
alter table t_camp alter column start_booking set not null;
\i views/version.sql
commit;

View File

@ -1,2 +1,2 @@
create or replace view public.v_version as
select '2024.03.07'::text as version;
select '2024.03.16'::text as version;