64 lines
2.8 KiB
PHP
64 lines
2.8 KiB
PHP
|
<?php
|
||
|
$sql = array(
|
||
|
'ekomi_product_reviews' =>
|
||
|
'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'wic_ekomi_product_reviews` (
|
||
|
`date_add` datetime NOT NULL,
|
||
|
`order_id` varchar(64) character set latin1 NOT NULL,
|
||
|
`product_id` varchar(64) character set latin1 NOT NULL,
|
||
|
`stars` int(1) unsigned NOT NULL,
|
||
|
`review` text character set latin1 NOT NULL,
|
||
|
`id` int(11) unsigned NOT NULL auto_increment,
|
||
|
`id_shop` int(11) unsigned NOT NULL,
|
||
|
`id_lang` int(11) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;',
|
||
|
|
||
|
'ekomi_order_email' =>
|
||
|
'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'wic_ekomi_order_email` (
|
||
|
`id_order` int(10) NOT NULL,
|
||
|
`id_customer` int(10) NOT NULL,
|
||
|
`ekomi_link` varchar(250) NOT NULL,
|
||
|
`date_add` datetime NOT NULL,
|
||
|
`date_send` datetime NOT NULL,
|
||
|
`id` int(11) unsigned NOT NULL auto_increment,
|
||
|
`id_shop` int(11) unsigned NOT NULL,
|
||
|
`id_lang` int(11) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;',
|
||
|
|
||
|
'ekomi' =>
|
||
|
'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'ekomi` (
|
||
|
`id_ekomi` int(11) unsigned NOT NULL auto_increment,
|
||
|
`id_shop` int(10) unsigned NOT NULL,
|
||
|
`display_block` int(1) unsigned NULL,
|
||
|
`display_reviews` int(1) unsigned NULL,
|
||
|
`display_richsnippet` int(1) unsigned NULL,
|
||
|
`picto` varchar(250) NOT NULL,
|
||
|
`sending` int(1) unsigned NULL,
|
||
|
`range` varchar(3) NULL,
|
||
|
`hook` varchar(250) NOT NULL,
|
||
|
`id_state` int(1) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`id_ekomi`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;',
|
||
|
|
||
|
'ekomi_unsubscribe' =>
|
||
|
'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'ekomi_unsubscribe` (
|
||
|
`id_ekomi_unsubscribe` int(11) unsigned NOT NULL auto_increment,
|
||
|
`id_customer` int(10) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`id_ekomi_unsubscribe`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;',
|
||
|
|
||
|
'ekomi_lang' =>
|
||
|
'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'ekomi_lang` (
|
||
|
`id_ekomi` int(11) unsigned NOT NULL auto_increment,
|
||
|
`id_lang` int(10) unsigned NOT NULL,
|
||
|
`api_id` varchar(250) NOT NULL,
|
||
|
`api_key` varchar(250) NOT NULL,
|
||
|
`api_script` text character set utf8 NOT NULL,
|
||
|
PRIMARY KEY (`id_ekomi`,`id_lang`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;',
|
||
|
|
||
|
'ekomi_insert' =>
|
||
|
'INSERT INTO `'._DB_PREFIX_.'ekomi`(`id_ekomi`,`id_shop`,`display_block`,`display_reviews`,`picto`,`sending`,`range`,`hook`,`id_state`) VALUES (\'\','.$this->context->shop->id.',0,0,\'1-star-yellow\',0,0,\''.$this->default_hook.'\',5);'
|
||
|
);
|
||
|
?>
|