Skip to content

Commit

Permalink
changed the serviceDefinition.code size from character varying(64) to…
Browse files Browse the repository at this point in the history
… character varying(256)
  • Loading branch information
Shashwat12-egov committed Nov 15, 2024
1 parent 09d65c4 commit 24c971f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ServiceDefinition {

@JsonProperty("code")
@NotNull
@Size(min = 2, max = 64)
@Size(min = 2, max = 256)
private String code = null;

@JsonProperty("isActive")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ egov.service.request.default.limit=10
egov.service.request.max.limit=100

# Kafka topics
egov.service.definition.create.topic=save-service-definition
egov.service.definition.create.topic=save-service-definition-health
egov.service.create.topic=save-service
egov.service.definition.update.topic=update-service-definition

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Migration script to alter the length of 'code' column in both tables to 256

-- Update eg_service_definition table
ALTER TABLE eg_service_definition
ALTER COLUMN code TYPE character varying(256);

-- Update eg_service_attribute_definition table
ALTER TABLE eg_service_attribute_definition
ALTER COLUMN code TYPE character varying(256);
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ serviceMaps:
mappings:
- version: 1.0
description: Persists service definition details in service definition table
fromTopic: save-service-definition
fromTopic: save-service-definition-health
isTransaction: true
queryMaps:

Expand All @@ -26,7 +26,7 @@ serviceMaps:

- jsonPath: $.ServiceDefinition.auditDetails.lastModifiedTime

- jsonPath: $.ServiceDefinition.additionalDetails
- jsonPath: $.ServiceDefinition.additionalFields
type: JSON
dbType: JSONB

Expand Down Expand Up @@ -66,7 +66,7 @@ serviceMaps:

- jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedTime

- jsonPath: $.ServiceDefinition.attributes.*.additionalDetails
- jsonPath: $.ServiceDefinition.attributes.*.additionalFields
type: JSON
dbType: JSONB

Expand Down Expand Up @@ -96,7 +96,7 @@ serviceMaps:

- jsonPath: $.Service.auditDetails.lastModifiedTime

- jsonPath: $.Service.additionalDetails
- jsonPath: $.Service.additionalFields
type: JSON
dbType: JSONB

Expand Down Expand Up @@ -126,7 +126,7 @@ serviceMaps:

- jsonPath: $.Service.attributes.*.auditDetails.lastModifiedTime

- jsonPath: $.Service.attributes.*.additionalDetails
- jsonPath: $.Service.attributes.*.additionalFields
type: JSON
dbType: JSONB

Expand All @@ -146,7 +146,7 @@ serviceMaps:

- jsonPath: $.ServiceDefinition.isActive

- jsonPath: $.ServiceDefinition.additionalDetails
- jsonPath: $.ServiceDefinition.additionalFields
type: JSON
dbType: JSONB

Expand Down Expand Up @@ -185,7 +185,7 @@ serviceMaps:

- jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedTime

- jsonPath: $.ServiceDefinition.attributes.*.additionalDetails
- jsonPath: $.ServiceDefinition.attributes.*.additionalFields
type: JSON
dbType: JSONB

Expand All @@ -207,6 +207,6 @@ serviceMaps:

- jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedTime

- jsonPath: $.ServiceDefinition.attributes.*.additionalDetails
- jsonPath: $.ServiceDefinition.attributes.*.additionalFields
type: JSON
dbType: JSONB

0 comments on commit 24c971f

Please sign in to comment.