ANT task: UpdateWorkspacesSchema
Use the UpdateWorkspacesSchema script when you have made changes to your base schema, and need the workspaces schema updated to reflect those changes.
Usage
AIX|Linux|Solaris|I5/OS|
WC_installdir/bin/config_ant.sh -buildfile WC_installdir/components/Workspaces/xml/updateWorkspacesSchema.xml -DinstanceName=instance -DresourceXMLLocation=location_of_resource_XML_Files -DgenerateSQLStatementsOnly=true|false(optional) -DgenerateSQLStatementsOutputFile=outputFileDirectory(optional) -DdebugMode=true(optional) CM_updateWorkspacesWindows:
WC_installdir/bin/config_ant.bat -buildfile WC_installdir/components/Workspaces/xml/updateWorkspacesSchema.xml -DinstanceName=instance -DresourceXMLLocation=location_of_resource_XML_Files -DgenerateSQLStatementsOnly=true|false(optional) -DgenerateSQLStatementsOutputFile=outputFileDirectory(optional) -DdebugMode=true(optional) CM_updateWorkspaces
This text is wrapped for display purposes. Enter the command on one line.
Parameters
- instance
- The WebSphere Commerce instance name.
- resourceXMLLocation
- This is the XML directory where the content-management/wc-resource-containers.xml and all the other resource manager XML files reside. The directory only needs to contain the resource manager XML file for this table if the table is content managed or operational. If there is no resource file for a table found in the content-management directory under the specified location, the tool assumes that there is no change to the resource type of the table, or the table is a non-managed type table if the table does not exist in the workspace yet. The tool looks for the a directory named "content-management" under the specified location first. If the tool cannot find the content-management directory under the specified location, it tries to locate the content-management directory under the tools classpath. If the tool still cannot find any content-management directory, it throws an exception. In summary, the content-management directory must exist even if it is empty.
- generateSQLStatementsOnly (optional)
- A flag (true or false) to indicate that the Ant task should not actually update the workspaces but rather just report the SQL used to update the workspace pool. The default value is false, which means that the workspace pool will be updated.
- generateSQLStatementsOutputFile (optional)
- The output file to print the SQL statements to if generateSQLStatementsOnly is set to true. If not specified then the SQL is output to standard output stream.
- debugMode (optional)
- If true, trace and log information is enabled and prints to the WC_installdir/logs/Application.messages.log file.
Related Concepts
Authoring server schema update toolRelated tasks
Run the authoring server update scripts on the WebSphere Commerce Server
Related Reference
ANT task: UpdateWorkspacesSchemaTable