diff --git a/install-dev/upgrade/php/block_category_1521.php b/install-dev/upgrade/php/block_category_1521.php new file mode 100644 index 000000000..7c508023e --- /dev/null +++ b/install-dev/upgrade/php/block_category_1521.php @@ -0,0 +1,14 @@ +ExecuteS('SELECT `'._DB_PREFIX_.'configuration` WHERE `name`=\'BLOCK_CATEG_MAX_DEPTH\' ')) + Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'configuration` + (`id_configuration` ,`id_shop_group` ,`id_shop` ,`name` ,`value` ,`date_add` ,`date_upd`) + VALUES (NULL, NULL, NULL, \'BLOCK_CATEG_MAX_DEPTH\', 2, NOW(), NOW())'); + else if (Db::getInstance()->ExecuteS('SELECT `'._DB_PREFIX_.'configuration` WHERE and `value` IS NOT NULL AND `value` <> 0')) + Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'configuration` SET `value` = 2 WHERE `name`=\'BLOCK_CATEG_MAX_DEPTH\' '); + +} \ No newline at end of file diff --git a/install-dev/upgrade/sql/1.5.2.1.sql b/install-dev/upgrade/sql/1.5.2.1.sql index d0abe21fa..74bcff51a 100644 --- a/install-dev/upgrade/sql/1.5.2.1.sql +++ b/install-dev/upgrade/sql/1.5.2.1.sql @@ -1,3 +1,4 @@ SET NAMES 'utf8'; -/* PHP:blocknewsletter1530()(); */; \ No newline at end of file +/* PHP:blocknewsletter1530(); */; +/* PHP:block_category_1521(); */;