Magento – Magento not running the mysql4-install-0.1.0.php for my module
Start a magento powered online store for $4.95 only with this magento host
Host unlimited magento stores for $24.95 only with this magento hosting plan
Host your popular magento stores on a reliable server with this dedicated hosting plan
Magento is the leading e-commerce platform rapidly gaining in popularity. This magento discussion was started by MA_19 0n February 25 2009
I was testing out some ideas using a module I’d created using the module creator, when I decided to add some new database tables to the mysql4-install-0.1.0.php file for my module.
Everything I found on the net said that Magento would create the new tables next time the module ran, but this didn’t seem to be happening.
I tried a lot of things, but in the end I found that the first time Magento reads a module’s etc/config.xml it writes the value of into the core_config table in the database.Magento will not then run the mysql4-install-0.1.0.php file again whilst the version number in core_config matches the one in the config.xml
I removed the entry for my module in core_config. Magento then ran the mysql4-install-0.1.0.php and created my new tables smile
That one took me a while to figure out – so I thought I’d share.
Discuss this, get free magento help.
This magento help blog is proudly hosted with this host. If you're new to magentohelp, you may want to subscribe to this magento RSS feed