|
Hi there,
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 <version> 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
That one took me a while to figure out - so I thought I’d share.
Matt
|