Changes between Version 3 and Version 4 of HowToMakeAutomaticUpgradeScriptForModule


Ignore:
Timestamp:
Jul 8, 2013, 11:50:58 AM (11 years ago)
Author:
AntonL
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToMakeAutomaticUpgradeScriptForModule

    v3 v4  
    2424A folder with files and folders which should be uploaded in module's folder. So, files and folders structure should match module's one. You may read more about module's file structure [http://www.boonex.com/trac/dolphin/wiki/DolphinTutorialMyFirstModule here].[[BR]] 
    2525 
     26== Configuration file. == 
     27 
     28Module's update script has its own '''config.php''' file. The main differences between module's and update's configuration files are listed below. Update's configuration file has the following additional parameters 
     291. Config file should specify the version which it can be applied to. Also it should specify the version which you'll have after the update was applied. 
     30{{{ 
     31'version_from' => '1.0.0', 
     32'version_to' => '1.1.0', 
     33}}} 
     342. Home directory and URI of the module which the update relates to. 
     35{{{ 
     36'module_dir' => 'me/bloggie/', 
     37'module_uri' => 'bloggie', 
     38}}}[[BR]] 
     39Update's configuration file doesn't have the following parameters in comparison with module's config file. 
     401. Everything related to uninstallation. 
     41{{{ 
     42        'uninstall' => array ( 
     43                ... 
     44        ), 
     45        ... 
     46        'uninstall_permissions' => array(), 
     47        ... 
     48        'uninstall_info' => array( 
     49                'introduction' => 'uninst_intro.html', 
     50                'conclusion' => 'uninst_concl.html' 
     51        ), 
     52}}} 
     532. Dependencies settings. 
     54{{{ 
     55'dependencies' => array(), 
     56}}} 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub