startSetup(); $installer->run(" ALTER TABLE {$this->getTable('cms_block')} CHANGE `store_id` `store_id` smallint(5) unsigned NULL DEFAULT '0'; ALTER TABLE {$this->getTable('cms_block')} ADD CONSTRAINT `FK_CMS_BLOCK_STORE` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON UPDATE CASCADE ON DELETE SET NULL; "); $installer->run(" ALTER TABLE {$this->getTable('cms_page')} CHANGE `store_id` `store_id` smallint(5) unsigned NULL DEFAULT '0'; ALTER TABLE {$this->getTable('cms_page')} ADD CONSTRAINT `FK_CMS_PAGE_STORE` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON UPDATE CASCADE ON DELETE SET NULL; "); $installer->endSetup();