Installing Custom Attributes with Your Module
This is an old revision of the document!
This is a quick tutorial on how to install custom product attributes (eav attributes) with your module. It can easily be adapted for other entities’ attributes. It’s also a good starting point for general install scripts.
Mage includes the ability to run custom scripts with your module. On loading of the Mage application, scripts in the *sql/mymodule_setup/* (eg “mysql4-install-0.9.0.php”) folder of your module are run if the version number represents the current module version. which are named like are check