Install script of module not running
-
30-10-2019 - |
Question
config.xml:
<config>
<modules>
<ASD_MyhProductImporter>
<version>0.0.1</version>
</ASD_MyhProductImporter>
</modules>
<global>
<models>
<myproductimporter>
<class>ASD_MyProductImporter_Model</class>
</myproductimporter>
</models>
<resources>
<myproductimporter_setup>
<setup>
<module>ASD_MyProductImporter</module>
<class>Mage_Core_Model_Resource_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</myproductimporter_setup>
...
The script:
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();
$installer->run("CREATE TABLE 'custom_options' (
'config_id' INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
'scope' VARCHAR(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
'scope_id' INT(11) NOT NULL DEFAULT '0',
'template_id' INT(3) NOT NULL ,
'value' TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
PRIMARY KEY ('config_id','scope','scope_id','template_id')
) ENGINE = INNODB;"
);
$installer->endSetup();
The myproductimporter_setup
row in the core_config_data
is not present.
The table that I am trying to create also does not exist.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange