added start_booking in t_camp, see #14
This commit is contained in:
@ -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
|
||||
);
|
||||
|
@ -1,6 +0,0 @@
|
||||
begin;
|
||||
|
||||
\i views/camp.sql
|
||||
\i views/version.sql
|
||||
|
||||
commit;
|
9
src/main/resources/upgrade_2024-03-16.sql
Normal file
9
src/main/resources/upgrade_2024-03-16.sql
Normal 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;
|
@ -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;
|
||||
|
Reference in New Issue
Block a user