ALTER SEQUENCE "LabLogType_LabLogTypeId_seq" RESTART WITH 6;

insert into "LabLogType" ("LogTypeName","Active") values('SMSReport',true),
('LabDepartment',true);

-------------------------


Alter table "LabHeader" add column if not exists "LabDepartmentId" int references "LabDepartment"("LabDepartmentId");

insert into "LabDepartment" ("DepartmentName","Active","CreatedBy" ,"CreatedDate") 
values ('Radiology',true,1029,now());

update "LabHeader" set "LabDepartmentId" = 1;

alter table "LabHeader" alter column "LabDepartmentId" set not null;

-------------