Skip to content

Commit

Permalink
Fix for col length.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Dec 15, 2023
1 parent d32ff1b commit 678d6a1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
17 changes: 17 additions & 0 deletions api/src/main/resources/db/migration/V1.0.22__INSTITUTE_API.sql
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 678d6a1

Please sign in to comment.