// upgrade display error optimization
This commit is contained in:
1 parent
e11485fd11
commit
c097a1cb4a
1 file changed
+1
-4
@@ -39,10 +39,7 @@ function migrate_orders()
|
|||||||
$values_order_detail = array();
|
$values_order_detail = array();
|
||||||
$col_order_detail = Db::getInstance()->query('SHOW FIELDS FROM `'._DB_PREFIX_.'order_detail`');
|
$col_order_detail = Db::getInstance()->query('SHOW FIELDS FROM `'._DB_PREFIX_.'order_detail`');
|
||||||
if (!$col_order_detail)
|
if (!$col_order_detail)
|
||||||
{
|
return array('error' => 1, 'msg' => 'unable to get fields list from order_detail table';
|
||||||
$array_errors[] = 'unable to get fields list from order_detail table';
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$col_order_detail = $col_order_detail->fetchAll(PDO::FETCH_COLUMN);
|
$col_order_detail = $col_order_detail->fetchAll(PDO::FETCH_COLUMN);
|
||||||
$insert_order_detail = 'INSERT INTO `'._DB_PREFIX_.'order_detail_2` (`'.implode('`, `', $col_order_detail).'`) VALUES ';
|
$insert_order_detail = 'INSERT INTO `'._DB_PREFIX_.'order_detail_2` (`'.implode('`, `', $col_order_detail).'`) VALUES ';
|
||||||
|
|||||||
Reference in new issue
Block a user