Feature #54

avatar

install/uninstall scripts for plugins

Added by Lorenzo Pisani over 2 years ago. Updated over 2 years ago.

Status:Closed Start:05/19/2009
Priority:Normal Due date:
Assigned to:avatarLorenzo Pisani % Done:

100%

Category:-
Target version:0.2.0
Resolution:

fixed


Description

plugins should be able to run scripts on enable/disable events

this script should be able to run cross request for multi page install setups and should probably be a controller for a full MVC environment

History

Updated by Lorenzo Pisani over 2 years ago

avatar
  • % Done changed from 0 to 70

41995170 adds support for install scripts

still need to add a button to the admin/plugins/manage page to 'purge' plugins and to 'run install script' without enabling or disabling the plugin

running an install script on an uninstalled plugin will change status to disabled
running reinstall on an enabled plugin will clear the data (recreate blank tables)
running purge on a disabled plugin will run the uninstall method and set the plugin to uninstalled status

also have to write the install/uninstall methods for certain plugins:
auth - install script will create DB tables, initial roles, and initial user
contents - the 3 content type plugins will create the DB tables and possibly some dummy demo data

the other plugins need no install scripts

wether or not a plugin needs an install script is defined in the plugin.php config file

Updated by Lorenzo Pisani over 2 years ago

avatar
  • Status changed from Assigned to Closed
  • % Done changed from 70 to 100
  • Resolution set to fixed

fixed in 41995170 and e41afb43

Also available in: Atom PDF