From 678d6a14309fd98a3c48fb6025834a01532b3ab6 Mon Sep 17 00:00:00 2001 From: Marco Villeneuve Date: Fri, 15 Dec 2023 11:29:41 -0800 Subject: [PATCH] Fix for col length. --- .../controller/v1/DistrictAPIController.java | 1 - .../db/migration/V1.0.22__INSTITUTE_API.sql | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 api/src/main/resources/db/migration/V1.0.22__INSTITUTE_API.sql diff --git a/api/src/main/java/ca/bc/gov/educ/api/institute/controller/v1/DistrictAPIController.java b/api/src/main/java/ca/bc/gov/educ/api/institute/controller/v1/DistrictAPIController.java index e78e23de..4f41602e 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/institute/controller/v1/DistrictAPIController.java +++ b/api/src/main/java/ca/bc/gov/educ/api/institute/controller/v1/DistrictAPIController.java @@ -111,7 +111,6 @@ public District createDistrict(District district) throws JsonProcessingException @Override public District updateDistrict(UUID id, District district) throws JsonProcessingException { - log.info("Incoming district update user: " + district.getUpdateUser()); validatePayload(() -> this.districtPayloadValidator.validateUpdatePayload(district)); RequestUtil.setAuditColumnsForUpdate(district); var pair = districtService.updateDistrict(district, id); diff --git a/api/src/main/resources/db/migration/V1.0.22__INSTITUTE_API.sql b/api/src/main/resources/db/migration/V1.0.22__INSTITUTE_API.sql new file mode 100644 index 00000000..a51ffa13 --- /dev/null +++ b/api/src/main/resources/db/migration/V1.0.22__INSTITUTE_API.sql @@ -0,0 +1,17 @@ +ALTER TABLE AUTHORITY_ADDRESS_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE AUTHORITY_ADDRESS_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE DISTRICT_ADDRESS_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE DISTRICT_ADDRESS_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_ADDRESS_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_ADDRESS_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100);