PDOException Object
(
[message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'discount_per_item'; check that column/key exists
[string:Exception:private] =>
[code:protected] => 42000
[file:protected] => /home/maxburns/public_html/lib/Zend/Db/Statement/Pdo.php
[line:protected] => 228
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/maxburns/public_html/lib/Zend/Db/Statement/Pdo.php
[line] => 228
[function] => execute
[class] => PDOStatement
[type] => ->
[args] => Array
(
[0] => Array
(
)
)
)
[1] => Array
(
[file] => /home/maxburns/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php
[line] => 110
[function] => _execute
[class] => Zend_Db_Statement_Pdo
[type] => ->
[args] => Array
(
[0] => Array
(
)
)
)
[2] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Zend/Db/Statement.php
[line] => 291
[function] => _execute
[class] => Varien_Db_Statement_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[file] => /home/maxburns/public_html/lib/Zend/Db/Adapter/Abstract.php
[line] => 479
[function] => execute
[class] => Zend_Db_Statement
[type] => ->
[args] => Array
(
[0] => Array
(
)
)
)
[4] => Array
(
[file] => /home/maxburns/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php
[line] => 238
[function] => query
[class] => Zend_Db_Adapter_Abstract
[type] => ->
[args] => Array
(
[0] => ALTER TABLE `mxsales_flat_order` DROP COLUMN `discount_per_item`
[1] => Array
(
)
)
)
[5] => Array
(
[file] => /home/maxburns/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 428
[function] => query
[class] => Zend_Db_Adapter_Pdo_Abstract
[type] => ->
[args] => Array
(
[0] => ALTER TABLE `mxsales_flat_order` DROP COLUMN `discount_per_item`
[1] => Array
(
)
)
)
[6] => Array
(
[file] => /home/maxburns/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 347
[function] => query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => ALTER TABLE `mxsales_flat_order` DROP COLUMN `discount_per_item`
)
)
[7] => Array
(
[file] => /home/maxburns/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 883
[function] => raw_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => ALTER TABLE `mxsales_flat_order` DROP COLUMN `discount_per_item`
)
)
[8] => Array
(
[file] => /home/maxburns/public_html/app/code/local/SM/DiscountPerItem/sql/xdiscountperitem_setup/mysql4-upgrade-0.0.1-0.0.2.php
[line] => 13
[function] => dropColumn
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => mxsales_flat_order
[1] => discount_per_item
)
)
[9] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 624
[args] => Array
(
[0] => /home/maxburns/public_html/app/code/local/SM/DiscountPerItem/sql/xdiscountperitem_setup/mysql4-upgrade-0.0.1-0.0.2.php
)
[function] => include
)
[10] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 437
[function] => _modifyResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => upgrade
[1] => 0.0.1
[2] => 0.0.2
)
)
[11] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 320
[function] => _upgradeResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => 0.0.1
[1] => 0.0.2
)
)
[12] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 235
[function] => applyUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
)
)
[13] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Mage/Core/Model/App.php
[line] => 417
[function] => applyAllUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ::
[args] => Array
(
)
)
[14] => Array
(
[file] => /home/maxburns/public_html/app/code/core/Mage/Core/Model/App.php
[line] => 343
[function] => _initModules
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
)
)
[15] => Array
(
[file] => /home/maxburns/public_html/app/Mage.php
[line] => 684
[function] => run
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] => Array
(
[scope_code] => dmdirect
[scope_type] => website
[options] => Array
(
)
)
)
)
[16] => Array
(
[file] => /home/maxburns/public_html/index.php
[line] => 103
[function] => run
[class] => Mage
[type] => ::
[args] => Array
(
[0] => dmdirect
[1] => website
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => 42000
[1] => 1091
[2] => Can't DROP 'discount_per_item'; check that column/key exists
)
)