startSetup(); $installer->run(" ALTER TABLE {$this->getTable('sitemap')} CHANGE `store_id` `store_id` smallint(5) unsigned NOT NULL; ALTER TABLE {$this->getTable('sitemap')} ADD CONSTRAINT `FK_SITEMAP_STORE` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON UPDATE CASCADE ON DELETE CASCADE; "); $installer->endSetup();