dls:set-upgrade-status( $promote as xs:boolean ) as element(dls:upgrade-status)
Sets DLS the upgrade status to current or compatibility-mode. Only use this when upgrading a pre-MarkLogic 8 DLS repository.
Parameters | |
---|---|
promote |
Specify fn:true() to use the current behavior,
fn:false() to use compatibility-mode.
|
dls-admin
role is required to run this
function, or the privilege:http://marklogic.com/xdmp/privileges/dls-admin
(: To set the upgrade status to Version 7 compatibiltiy mode :) xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy"; dls:set-upgrade-status(fn:false()) ==> <dls:upgrade-status xmlns:dls="http://marklogic.com/xdmp/dls"> <dls:validation-status>compatibility-mode</dls:validation-status> <dls:validation-date>2014-12-16T15:26:51.032768-05:00</dls:validation-date> </dls:upgrade-status> ==> (: To indicate a successful upgrade or clear compatibility mode :) xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy"; dls:set-upgrade-status(fn:true()) ==> <dls:upgrade-status xmlns:dls="http://marklogic.com/xdmp/dls"> <dls:validation-status>current</dls:validation-status> </dls:upgrade-status>