-
- Michael

-
Total Posts: 684
Joined: 2007-08-31
|
Replacing the following lines in app/code/core/Mage/Core/sql/core_setup/mysql4-upgrade-0.8.10-0.8.11.php :
$installer->run(" ALTER TABLE `{$installer->getTable('design_change')}` DROP FOREIGN KEY `FK_DESIGN_CHANGE_STORE`; ALTER TABLE `{$installer->getTable('design_change')}` ADD CONSTRAINT `FK_DESIGN_CHANGE_STORE` FOREIGN KEY (`store_id`) REFERENCES `{$installer->getTable('core_store')}` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE; ");
with
$installer->getConnection()->dropForeignKey($installer->getTable('design_change'), 'FK_DESIGN_CHANGE_STORE'); $installer->getConnection()->addConstraint( 'FK_DESIGN_CHANGE_STORE', $installer->getTable('design_change'), 'store_id', $installer->getTable('core_store'), 'store_id' );
should help.
|