From cb01c744870fa77efb3cd60ce0e7fa9a174a688c 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14471 b9a71923-0436-4b27-9f14-aed3839534dd --- 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 + ); +