00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 $installer = $this;
00036
00037
00038 $installer->startSetup();
00039
00040 $installer->run("
00041 ALTER TABLE {$this->getTable('rating_option_vote_aggregated')}
00042 ADD CONSTRAINT `FK_RATING_OPTION_VOTE_AGGREGATED_STORE` FOREIGN KEY (`store_id`)
00043 REFERENCES {$this->getTable('core_store')} (`store_id`)
00044 ON UPDATE CASCADE
00045 ON DELETE CASCADE;
00046 ");
00047 $installer->run("
00048 ALTER TABLE {$this->getTable('rating_store')}
00049 ADD CONSTRAINT `FK_RATING_STORE_STORE` FOREIGN KEY (`store_id`)
00050 REFERENCES {$this->getTable('core_store')} (`store_id`)
00051 ON UPDATE CASCADE
00052 ON DELETE CASCADE;
00053 ");
00054 $installer->run("
00055 ALTER TABLE {$this->getTable('rating_title')}
00056 ADD CONSTRAINT `FK_RATING_TITLE_STORE` FOREIGN KEY (`store_id`)
00057 REFERENCES {$this->getTable('core_store')} (`store_id`)
00058 ON UPDATE CASCADE
00059 ON DELETE CASCADE;
00060 ");
00061 $installer->endSetup();