MarkLogic 9 Product Documentation
dls:start-upgrade

dls:start-upgrade() as empty-sequence()

Summary

Upgrades a previous version DLS Database to the current format. After upgrading MarkLogic to a new major version, if the DLS database is incompatible with the current version you need to either enable compatibly mode by calling dls:set-upgrade-status(fn:false()) or by upgrading your database with dls:start-upgrade .

Required Privileges

This function should be run as a user with the 'admin' role.

Example

 
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls" 
   at "/MarkLogic/dls.xqy";
dls:start-upgrade()

     
Powered by MarkLogic Server | Terms of Use | Privacy Policy