// Manage SQL upgrade for stock management + bug fix

This commit is contained in:
dSevere
2011-12-13 11:09:37 +00:00
parent bbf33b9799
commit cd44e07056
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