I am trying to install order_delivery_date-0.1.5 extension on magento 1.8. The extension was compatible with magento 1.7. now in magento 1.8 every thing seems to be ok, but the database part. the delivery date section can be seen in front end and back-end. but the extension didn't make any change on the database. as you can see the mysql4-install-0.1.0.php below, should add a new table to the database and 4 new attribute to existing tables:
<?php
$installer = $this;
$installer->startSetup();
$installer->run("
-- DROP TABLE IF EXISTS {$this->getTable('deliverydate')};
CREATE TABLE {$this->getTable('deliverydate')} (
`deliverydate_id` int(11) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`filename` varchar(255) NOT NULL default '',
`content` text NOT NULL default '',
`status` smallint(6) NOT NULL default '0',
`created_time` datetime NULL,
`update_time` datetime NULL,
PRIMARY KEY (`deliverydate_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
");
$this->_conn->addColumn($this->getTable('sales_flat_quote'), 'shipping_arrival_date', 'datetime');
$this->_conn->addColumn($this->getTable('sales_flat_quote'), 'shipping_arrival_comments', 'text');
$this->_conn->addColumn($this->getTable('sales_flat_order'), 'shipping_arrival_date', 'datetime');
$this->_conn->addColumn($this->getTable('sales_flat_order'), 'shipping_arrival_comments', 'text');
$installer->endSetup();
so, i am wondering that, what is the problem? why the mysql4-install-0.1.0.php does not do any change on the database? how can i do this changes manually?
$this->_conn
with$installer->getConnection()
and delete the entry from thecore_resource
table to re run