I try to upgrade my custom Magento module but for some reason it's not working.
My module config:
<?xml version="1.0"?>
<config>
<modules>
<MVE_CategoryAttribute>
<version>0.1.1</version>
</MVE_CategoryAttribute>
</modules>
<global>
<resources>
<categoryattribute_setup>
<setup>
<module>MVE_CategoryAttribute</module>
<class>Mage_Eav_Model_Entity_Setup</class>
</setup>
<connection>
<use>default_setup</use>
</connection>
</categoryattribute_setup>
</resources>
</global>
</config>
The installation script (mysql4-install-0.1.0.php):
<?php
$this->startSetup();
$this->addAttribute('catalog_category', 'imagetext', array(
'group' => 'General Information',
'input' => 'textarea',
'type' => 'varchar',
'label' => 'Tekst op afbeelding',
'backend' => '',
'visible' => 1,
'required' => 0,
'user_defined' => 1,
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));
$this->endSetup();
?>
The upgrade script (mysql4-upgrade-0.1.0-0.1.1.php):
<?php
$this->startSetup();
$this->updateAttribute('catalog_category', 'imagetext', 'global', Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE);
$this->endSetup();
?>
mysql4-data-upgrade-0.1.0-0.1.1.php
and try – Kalpesh