Mini Kabibi Habibi

Current Path : C:/Users/ITO/Desktop/From USB/Nspire/HRMSv3-20230802-0164-2 Server/
Upload File :
Current File : C:/Users/ITO/Desktop/From USB/Nspire/HRMSv3-20230802-0164-2 Server/db updates - hrms build 142.txt

CREATE TABLE "NonPlantillaItems"
(
"NonPlantillaItemId" bigserial NOT NULL,
"PositionId" integer,
"IsDeleted" boolean,
  CONSTRAINT "NonPlantillaItemId_pkey" PRIMARY KEY ("NonPlantillaItemId")
)
WITH (
  OIDS=FALSE
);
ALTER TABLE "NonPlantillaItems"
  OWNER TO postgres;
GRANT ALL ON TABLE "NonPlantillaItems" TO postgres;
GRANT ALL ON TABLE "NonPlantillaItems" TO public;

CREATE TABLE "NonPlantillaItemEntries"
(
"NonPlantillaItemEntryId" bigserial NOT NULL,
"NonPlantillaItemId" integer,
"DateOfMovement" date,
"MovementType" character varying,
"EmployeeId" integer,
"DepartmentId" integer,
"DivisionId" integer,
"SectionId" integer,
"RateTypeId" integer,
"SalaryRate" numeric(18,5),
"ReasonOfSeparation" character varying,
  CONSTRAINT "NonPlantillaItemEntryId_pkey" PRIMARY KEY ("NonPlantillaItemEntryId")
)
WITH (
  OIDS=FALSE
);
ALTER TABLE "NonPlantillaItemEntries"
  OWNER TO postgres;
GRANT ALL ON TABLE "NonPlantillaItemEntries" TO postgres;
GRANT ALL ON TABLE "NonPlantillaItemEntries" TO public;

ALTER TABLE "SalaryGrades" ADD COLUMN "LbcNo" VARCHAR;UPDATE "SalaryGrades" SET "LbcNo" = '';
ALTER TABLE "PlantillaRecordEntries" ADD COLUMN "PositionId" INTEGER;UPDATE "PlantillaRecordEntries" SET "PositionId" = 0;
ALTER TABLE "PlantillaRecordEntries" ADD COLUMN "SalaryGradeId" INTEGER;UPDATE "PlantillaRecordEntries" SET "SalaryGradeId" = 0;
ALTER TABLE "ServiceRecords" ADD COLUMN "NonPlantillaItemId" INTEGER;UPDATE "ServiceRecords" SET "NonPlantillaItemId" = 0;
ALTER TABLE "PersonnelActionMemos" ADD COLUMN "NonPlantillaRecordId" INTEGER;UPDATE "PersonnelActionMemos" SET "NonPlantillaRecordId" = 0;