src/Config/Config.php
public function upgrade($currentVersion)
    {
        $result = true;

        if (version_compare($currentVersion, '4.5.0', '<')) {
            $result = $this->upgrade450();
        }

        if (version_compare($currentVersion, '4.5.3', '<')) {
            $result = $this->upgrade453() && $result;
        }

        if (version_compare($currentVersion, '4.6.0', '<')) {
            $result = $this->upgrade460() && $result;
        }

        if (version_compare($currentVersion, '4.7.0', '<')) {
            $result = $this->upgrade470() && $result;
        }

        if (version_compare($currentVersion, '4.7.3', '<')) {
            $result = $this->upgrade473() && $result;
        }

        if (version_compare($currentVersion, '4.8.5', '<')) {
            $result = $this->upgrade496() && $result;
        }

        if (version_compare($currentVersion, '5.4.0', '<')) {
            $result = $this->upgrade540() && $result;
        }

        if (version_compare($currentVersion, '5.4.1', '<')) {
            $result = $this->upgrade541() && $result;
        }

        if (version_compare($currentVersion, '5.4.2', '<')) {
            $result = $this->upgrade542() && $result;
        }

        if (version_compare($currentVersion, '5.5.0', '<')) {
            $result = $this->upgrade550() && $result;
        }

        return $result;
    }
public function upgrade($currentVersion)
    {
        $result = true;

        if (version_compare($currentVersion, '4.5.0', '<')) {
            $result = $this->upgrade450();
        }

        if (version_compare($currentVersion, '4.5.3', '<')) {
            $result = $this->upgrade453() && $result;
        }

        if (version_compare($currentVersion, '4.6.0', '<')) {
            $result = $this->upgrade460() && $result;
        }

        if (version_compare($currentVersion, '4.7.0', '<')) {
            $result = $this->upgrade470() && $result;
        }

        if (version_compare($currentVersion, '4.7.3', '<')) {
            $result = $this->upgrade473() && $result;
        }

        if (version_compare($currentVersion, '4.8.5', '<')) {
            $result = $this->upgrade496() && $result;
        }

        if (version_compare($currentVersion, '5.4.0', '<')) {
            $result = $this->upgrade540() && $result;
        }

        if (version_compare($currentVersion, '5.4.1', '<')) {
            $result = $this->upgrade541() && $result;
        }

        if (version_compare($currentVersion, '5.4.2', '<')) {
            $result = $this->upgrade542() && $result;
        }

        if (version_compare($currentVersion, '5.5.0', '<')) {
            $result = $this->upgrade550() && $result;
        }

        return $result;
    }
public function upgrade ( $ currentVersion ) { $ result = true ; if ( version_compare ( $ currentVersion , '4.5.0' , '<' ) ) { $ result = $ this -> upgrade450 ( ) ; } if ( version_compare ( $ currentVersion , '4.5.3' , '<' ) ) { $ result = $ this -> upgrade453 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '4.6.0' , '<' ) ) { $ result = $ this -> upgrade460 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '4.7.0' , '<' ) ) { $ result = $ this -> upgrade470 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '4.7.3' , '<' ) ) { $ result = $ this -> upgrade473 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '4.8.5' , '<' ) ) { $ result = $ this -> upgrade496 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '5.4.0' , '<' ) ) { $ result = $ this -> upgrade540 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '5.4.1' , '<' ) ) { $ result = $ this -> upgrade541 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '5.4.2' , '<' ) ) { $ result = $ this -> upgrade542 ( ) && $ result ; } if ( version_compare ( $ currentVersion , '5.5.0' , '<' ) ) { $ result = $ this -> upgrade550 ( ) && $ result ; } return $ result ; }
Upgrade the datamodel to the given version.

This method is only called when the module gets updated.

@param string $currentVersion
The current version of the module.

@return bool
Success.
Upgrade the datamodel to the given version .