Skip to main content

HS.Util.Installer.Upgrade.Loader

class HS.Util.Installer.Upgrade.Loader extends %Library.RegisteredObject

Method Inventory

Methods

classmethod FixRegistryProductList() as %Status
Remove HSPILIB from HSREGISTRY Configuration's Products list when HSPI not installed, or configured as a remote setup
classmethod GetCurrentVersion(pProduct="HSLIB", pIncludeMinor As %Boolean = 0, pConfigItem As HS.Util.Installer.ConfigItem = "")
Version of code base Pass in pIncludeMinor if you want major plus minor
classmethod GetUpgradeMethods(pNS As %String = $namespace, ByRef pMethods As %String, Output pUpToDate As %Boolean = 1, pOnlyCurrentVersion As %Boolean = 0, Output pProducts) as %Status
for a particular namespace is it up to date (all methods run successfully) pMethods contains a list of methods which have not run pUpToDate = 1 if no methods are returned pOnlyCurrent - only return the methods from the current version pProducts - a list of products and their version for this namespace (used for SetNSCurrent - where no methods exist)
classmethod GetVersion(pProduct="HSLIB", pNS=$namespace)
Version of data (last version installed)
classmethod IsUpToDate(pNS As %String = $namespace) as %Boolean
for a particular namespace is it up to date (all methods run successfully)
classmethod LayoutUpgrade(pNS As %String = $namespace, ByRef pLogFile As %File) as %Status
Upgrade data from HSDBLayout for the specified namespace on this machine This will first run any steps from the current(old) version that have not been run successfully Then it will run any steps in the intermediate versions and finally any steps in the new (target) version that have not been run successfully.
classmethod SetNSCurrent(pNS As %String = $namespace) as %Status
Used to set the current version in a newly created namespace so that we don't try to upgrade new namespaces
classmethod Upgrade(pNS As %String = $namespace, ByRef pLogFile As %File) as %Status
Upgrade specified namespace on this machine This will first run any steps from the current(old) version that have not been run successfully Then it will run any steps in the intermediate versions and finally any steps in the new (target) version that have not been run successfully. Note that it is possible that old=target. To get the status of all namespaces run GetUpgradeStatus

Inherited Members

Inherited Methods

FeedbackOpens in a new tab