From 6b73d3820fbce2fa371f4bf9178ae9a3adc255e4 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Thu, 5 Apr 2012 08:30:13 +0000 Subject: [PATCH] [-] BO : #PSFV-750 : add a comment criterion by default --- modules/productcomments/install.sql | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/productcomments/install.sql b/modules/productcomments/install.sql index 10a15e4de..4bb238973 100644 --- a/modules/productcomments/install.sql +++ b/modules/productcomments/install.sql @@ -63,4 +63,13 @@ CREATE TABLE IF NOT EXISTS `PREFIX_product_comment_report` ( `id_product_comment` int(10) unsigned NOT NULL, `id_customer` int(10) unsigned NOT NULL, PRIMARY KEY (`id_product_comment`, `id_customer`) -) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; \ No newline at end of file +) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; + +INSERT INTO `PREFIX_product_comment_criterion` VALUES ('1', '1', '1'); + +INSERT INTO `PREFIX_product_comment_criterion_lang` (`id_product_comment_criterion`, `id_lang`, `name`) + ( + SELECT '1', l.`id_lang`, 'Quality' + FROM `PREFIX_lang` l + ); +