*/ $installer = $this; /* @var $installer Mage_Core_Model_Resource_Setup */ $installer->startSetup(); $installer->run(" ALTER TABLE {$this->getTable('rating_option_vote_aggregated')} ADD CONSTRAINT `FK_RATING_OPTION_VOTE_AGGREGATED_STORE` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON UPDATE CASCADE ON DELETE CASCADE; "); $installer->run(" ALTER TABLE {$this->getTable('rating_store')} ADD CONSTRAINT `FK_RATING_STORE_STORE` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON UPDATE CASCADE ON DELETE CASCADE; "); $installer->run(" ALTER TABLE {$this->getTable('rating_title')} ADD CONSTRAINT `FK_RATING_TITLE_STORE` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON UPDATE CASCADE ON DELETE CASCADE; "); $installer->endSetup();