How can one installation package replace another without uninstalling and reinstalling?

How can one installation package replace another without uninstalling and reinstalling?

We want to use packages to make changes to Sugar instead of studio.  That way we can track the changes in GITHUB.

Parents
  • For such cases I just keep the id and name of the package unchanged and increase the version number.

    e.g. if the base package has:

    $manifest = array(

    'name' => 'myPackage',

    'version => '202008100001'.

    ...);

    $installdefs =array(

    'id' => 'myPackage',

    ...);

    I'll set the next package to:

    'version => '202008100002'.

    BUT BE AWARE, when doing so you cannot uninstall that package any more, the UNINSTALL button will disappear in module loader.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Reply
  • For such cases I just keep the id and name of the package unchanged and increase the version number.

    e.g. if the base package has:

    $manifest = array(

    'name' => 'myPackage',

    'version => '202008100001'.

    ...);

    $installdefs =array(

    'id' => 'myPackage',

    ...);

    I'll set the next package to:

    'version => '202008100002'.

    BUT BE AWARE, when doing so you cannot uninstall that package any more, the UNINSTALL button will disappear in module loader.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Children