startSetup(); $installer->run(" ALTER TABLE {$this->getTable('rating_title')} DROP FOREIGN KEY `FK_RATING_TITLE`; "); $installer->run(" ALTER TABLE {$this->getTable('rating_title')} ADD CONSTRAINT `FK_RATING_TITLE` FOREIGN KEY (`rating_id`) REFERENCES {$this->getTable('rating')} (`rating_id`) ON UPDATE CASCADE ON DELETE CASCADE; "); $installer->endSetup();