Skip to content

Commit 9edc653

Browse files
authored
Comment out add cols portion - cols already present in prod db
1 parent 81d1ca9 commit 9edc653

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/CESMII.ProfileDesigner.DB-UPDATE-2023-07-07.sql

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
-- Profile created, updated columns,
77
---------------------------------------------------------------------
88

9+
/*2023-08-24 - Sc - Cols already present in prod version of DB and set to nullable. So comment this for now.
910
ALTER TABLE public.profile ADD COLUMN created timestamp with time zone NULL;
1011
ALTER TABLE public.profile ADD COLUMN created_by_id integer NULL;
1112
ALTER TABLE public.profile ADD COLUMN updated timestamp with time zone NULL;
1213
ALTER TABLE public.profile ADD COLUMN updated_by_id integer NULL;
14+
*/
1315

1416
UPDATE public.profile SET created = (select min(created) from public.profile_type_definition where profile.id = id);
1517
UPDATE public.profile SET created = to_timestamp(0) where created is null;
@@ -40,4 +42,4 @@ ALTER TABLE public.profile
4042
REFERENCES public.user (id) MATCH SIMPLE
4143
ON UPDATE NO ACTION
4244
ON DELETE NO ACTION
43-
DEFERRABLE INITIALLY DEFERRED;
45+
DEFERRABLE INITIALLY DEFERRED;

0 commit comments

Comments
 (0)