UpdateVersionSchema utility

The UpdateVersionSchema utility identifies which tables to be versioned, and then creates the tables in your version schema. This utility replicates newly added tables marked to be versioned from the base schema into the version schema.

Note: Only the primary key, and unique indexes from the original table in the base schema are replicated in the table that is created in the version schema.

To determine which tables to create in the version schema, the updateVersionSchema utility searches all the service module directories for the content version configuration file (wc-content-version.xml). For any tables listed in the wc-content-version.xml file, the updateVersionSchema utility looks up the existing table in the WebSphere Commerce base schema, and then creates a corresponding table in the version schema. If the table listed in the wc-content-version.xml file is not found, an exception is reported.

If workspaces is enabled, we must run this utility to update the workspace schemas.

Note: We must run this utility when you customize any of the tables listed in the wc-content-version.xml file or when we make any schema-related updates to the list of versionable tables in the base schema.


Parameter values


Examples

Runtime environment

This following example shows how to use the updateVersionSchema utility in the runtime environment:

Development environmentTo run this utility in the toolkit environment, from the WCDE_installdir\bin directory, issue the following command in the command line:

(Developer)

The following example shows how to use the updateVersionSchema utility in the development environment:

The following log files are generated by default in the toolkit environment:


Limitations


Related tasks
Running utilities from the Utility server Docker container