ALTER TABLE "PatientLabDetail" 
DROP COLUMN "LabHeaderId",
DROP COLUMN "LabPackageId";
---------------------------------------------------------------
ALTER TABLE "PatientLabDetail" 
ADD COLUMN "LabMainDetailId" integer,
add CONSTRAINT "PatientLabDetail_LabMainDetailId_fkey" FOREIGN KEY ("LabMainDetailId") 
  REFERENCES public."LabMainDetail" ("LabMainDetailId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
--------------------------------------------------------------------
truncate table "PatientLabHeader" cascade
truncate table "PatientLabDetail" cascade