// Manage SQL upgrade for stock management + bug fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11168 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere
2011-12-13 11:09:37 +00:00
parent 3c055ccf7a
commit 29ad584b5c
6 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ function update_stock_mvt_reason()
{
//Get all stock mvts reasons already presents in the solution (from 1.4.x)
//Remove standard movements to keep only custom movement
$mvts = Db::getInstance()->ExecuteS('
$mvts = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT smr.*
FROM `'._DB_PREFIX_.'stock_mvt_reason`
WHERE `id` > 5
@@ -12,7 +12,7 @@ function update_stock_mvt_reason()
//Get all stock mvts reasons language traduction already presents in the solution (from 1.4.x)
//Remove standard movements to keep only custom movement
$mvts_lang = Db::getInstance()->ExecuteS('
$mvts_lang = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT smrl.*
FROM `'._DB_PREFIX_.'stock_movement_reason_lang`
WHERE `id_stock_mvt_reason` > 5