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 $installer = $this;
00028
00029
00030 $installer->startSetup();
00031
00032 $installer->run("
00033
00034 DROP TABLE IF EXISTS {$this->getTable('googleoptimizer/code')};
00035 CREATE TABLE {$this->getTable('googleoptimizer/code')} (
00036 `code_id` int(10) unsigned NOT NULL auto_increment,
00037 `entity_id` int(10) unsigned NOT NULL,
00038 `entity_type` varchar(50) NOT NULL default '',
00039 `store_id` smallint(5) unsigned NOT NULL,
00040 `control_script` text,
00041 `tracking_script` text,
00042 `conversion_script` text,
00043 PRIMARY KEY (`code_id`),
00044 KEY `GOOGLEOPTIMIZER_CODE_STORE` (`store_id`),
00045 CONSTRAINT `FK_GOOGLEOPTIMIZER_CODE_STORE` FOREIGN KEY (`store_id`) REFERENCES `{$this->getTable('core/store')}` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
00046 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
00047
00048 ");
00049
00050 $installer->endSetup();