ServerTools.updateMigratedSite (Method)
Starts a job that fixes the site's URLs and updates the site ID in the application.cfm file for the specified site's data source. The method also writes messages describing it's actions.
Returns:
JobID (integer)
Arguments:
Name | Type | Required | Description |
---|---|---|---|
datasourceName | DatasourceName | Required | The name of the data source that points to the site to update. |
oldServerRelativeSiteURL | ServerRelativeURL_EmptyString | Optional. Defaults to an empty string. | For all site URLS (as specified in the subsites table), this string will be replaced with the 'NewServerRelativeSiteURL' string. |
newServerRelativeSiteURL | ServerRelativeURL_EmptyString | Optional. Defaults to an empty string. | New web server URL. |
oldSiteDirectory | DirectoryPath_EmptyString | Optional. Defaults to an empty string. | The current directory in which the site resides. |
newSiteDirectory | DirectoryPath_Existing_EmptyString | Optional. Defaults to an empty string. | The directory to which CommonSpot will move the site. |
oldSiteMapping | CFMapping_EmptyString | Optional. Defaults to an empty string. | The current ColdFusion URL. |
newSiteMapping | CFMapping_EmptyString | Optional. Defaults to an empty string. | The new ColdFusion URL. |
Context:
License Requirements | None |
Permission Requirements | server:ServerMaintenance |
Deny Context | None |
Require Context | None |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the server level, calls to this method will be logged |
Customization | Customization is not supported for this method. |
Error Codes:
Code | Error Message |
---|---|
70000 | The specified data source does not point to a valid content database. |
70001 | |
70002 | |
70003 | |
70004 | When updating a migrated a site, you must specify a site directory, root URL, or site mapping. |
70006 | Either the old or new Web URL is not valid. |
70007 | Either the old or new ColdFusion Mapping is '/' or is not valid. |
Notes:
None