SearchRecent posts
The Random ToolboxDrupal 7 Setting up variables for use in a template (preprocess and process functions) Rendering Drupal 7 fields (the right way) Linux Secure Copy (scp) command Restrict Free Shipping in Magento Quickbooks Text Connection Ticket Cross-Site Request Forgery (CSRF) jQuery Events: MouseOver / MouseOut vs. MouseEnter / MouseLeave Monthly archive
|
How to Uninstall a Module in Magento - Reinstall Magento Module and Run Install ScriptIf you want Magento to reinstall the module and re-run any database setup, take a look at the core_resource table. Delete your module from this table and DROP any tables that the module had created. Clear Magento’s cache and the module will re-install. The mysql4-install-X.X.X.php files will only be run once by Magento. By changing the version value in your XML config (Namespace/Module/etc/config.xml), you’re telling Magento which install file it should use: <!-- this in your config --> <version>0.2.1</version> <!-- would load this sql install file --> mysql4-install-0.2.1.php ... Be sure to change the version of your install script when you’re deploying new versions of a module. During development, it’s still best to just delete the record from your core_resource table. |