MDMS Migration
Steps to migrate MDMS data to enable use of workbench UI v1.0
Overview
Follow the steps below to migrate the MDMS data to enable the use of Workbench UI v1.0.
Steps
1. Generate Schema
Follow the steps below to generate the schema for Workbench UI v1.0:
Clone the migration utility: Start by cloning the migration utility from this link.
Clone the MDMS Repository: Start by cloning the MDMS repository on your local machine.
Configure
application.properties: Open theapplication.propertiesfile in the workbench utility and configure it as follows:Add the hostname of the environment.
Add the MDMS cloned folder path in the
egov.mdms.conf.path.Add
master-config.jsoninmasters.config.url.Specify the output folder path for the created schema in
master.schema.files.dir.
Port-forward MDMSv2 Service: Port-forward the MDMSv2 service to port 8094.
Run the Curl Command:
shCopy codecurl -L -X POST 'localhost:8080/mdms-migration-toolkit/schema/v1/_generate'This command generates the schema and saves it in the path specified by
master.schema.files.dir.
2. Update Schema
After generating the schema, you may need to update it with additional attributes:
Add
x-uniqueAttribute: This defines unique fields in the schema.Add
x-ref-schemaAttribute: Use this attribute if a field within MDMS data needs to refer to another schema.Set Default Value for a Field: Use the
defaultkeyword to set default values.
3. Migrate Schema
To migrate the schema, use the following curl command:
4. Migrate Data
To migrate data for a specific master/module name, use the following curl command:
5. Schema Sample
Here is an example of a schema:
Last updated
Was this helpful?