Zend_Db_Statement_Exception Object
(
    [_previous:Zend_Exception:private] => 
    [message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'wholesale_manufacturer_discount' already exists
    [string:Exception:private] => 
    [code:protected] => 42
    [file:protected] => /home/paker/www/latest/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 234
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/paker/www/latest/lib/Varien/Db/Statement/Pdo/Mysql.php
                    [line] => 110
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/paker/www/latest/app/code/core/Zend/Db/Statement.php
                    [line] => 291
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/paker/www/latest/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 479
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /home/paker/www/latest/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `wholesale_manufacturer_discount` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `customer_id` int UNSIGNED NOT NULL COMMENT 'Customer_id',
  `manufacturer_id` int UNSIGNED NOT NULL COMMENT 'Manufacturer_id',
  `discount_value` smallint UNSIGNED NOT NULL COMMENT 'Discount_value',
  `min_order_amount` int UNSIGNED NOT NULL default '0' COMMENT 'Min_order_amount',
  PRIMARY KEY (`id`),
  UNIQUE `UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID` (`customer_id`, `manufacturer_id`),
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID` FOREIGN KEY (`manufacturer_id`) REFERENCES `advox_manufacturer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='wholesale_manufacturer_discount' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                            [1] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /home/paker/www/latest/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 428
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `wholesale_manufacturer_discount` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `customer_id` int UNSIGNED NOT NULL COMMENT 'Customer_id',
  `manufacturer_id` int UNSIGNED NOT NULL COMMENT 'Manufacturer_id',
  `discount_value` smallint UNSIGNED NOT NULL COMMENT 'Discount_value',
  `min_order_amount` int UNSIGNED NOT NULL default '0' COMMENT 'Min_order_amount',
  PRIMARY KEY (`id`),
  UNIQUE `UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID` (`customer_id`, `manufacturer_id`),
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID` FOREIGN KEY (`manufacturer_id`) REFERENCES `advox_manufacturer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='wholesale_manufacturer_discount' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                            [1] => Array
                                (
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /home/paker/www/latest/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 2048
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `wholesale_manufacturer_discount` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `customer_id` int UNSIGNED NOT NULL COMMENT 'Customer_id',
  `manufacturer_id` int UNSIGNED NOT NULL COMMENT 'Manufacturer_id',
  `discount_value` smallint UNSIGNED NOT NULL COMMENT 'Discount_value',
  `min_order_amount` int UNSIGNED NOT NULL default '0' COMMENT 'Min_order_amount',
  PRIMARY KEY (`id`),
  UNIQUE `UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID` (`customer_id`, `manufacturer_id`),
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID` FOREIGN KEY (`manufacturer_id`) REFERENCES `advox_manufacturer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='wholesale_manufacturer_discount' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                        )

                )

            [6] => Array
                (
                    [file] => /home/paker/www/latest/app/code/local/Advox/Wholesale/sql/advox_wholesale_setup/upgrade-0.2.7-0.2.8.php
                    [line] => 91
                    [function] => createTable
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Varien_Db_Ddl_Table Object
                                (
                                    [_tableName:protected] => wholesale_manufacturer_discount
                                    [_schemaName:protected] => 
                                    [_tableComment:protected] => wholesale_manufacturer_discount
                                    [_columns:protected] => Array
                                        (
                                            [ID] => Array
                                                (
                                                    [COLUMN_NAME] => id
                                                    [COLUMN_TYPE] => integer
                                                    [COLUMN_POSITION] => 0
                                                    [DATA_TYPE] => integer
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 1
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 1
                                                    [COMMENT] => Id
                                                )

                                            [CUSTOMER_ID] => Array
                                                (
                                                    [COLUMN_NAME] => customer_id
                                                    [COLUMN_TYPE] => integer
                                                    [COLUMN_POSITION] => 1
                                                    [DATA_TYPE] => integer
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Customer_id
                                                )

                                            [MANUFACTURER_ID] => Array
                                                (
                                                    [COLUMN_NAME] => manufacturer_id
                                                    [COLUMN_TYPE] => integer
                                                    [COLUMN_POSITION] => 2
                                                    [DATA_TYPE] => integer
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Manufacturer_id
                                                )

                                            [DISCOUNT_VALUE] => Array
                                                (
                                                    [COLUMN_NAME] => discount_value
                                                    [COLUMN_TYPE] => smallint
                                                    [COLUMN_POSITION] => 3
                                                    [DATA_TYPE] => smallint
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Discount_value
                                                )

                                            [MIN_ORDER_AMOUNT] => Array
                                                (
                                                    [COLUMN_NAME] => min_order_amount
                                                    [COLUMN_TYPE] => integer
                                                    [COLUMN_POSITION] => 4
                                                    [DATA_TYPE] => integer
                                                    [DEFAULT] => 0
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Min_order_amount
                                                )

                                        )

                                    [_indexes:protected] => Array
                                        (
                                            [UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID] => Array
                                                (
                                                    [INDEX_NAME] => UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID
                                                    [COLUMNS] => Array
                                                        (
                                                            [CUSTOMER_ID] => Array
                                                                (
                                                                    [NAME] => customer_id
                                                                    [SIZE] => 
                                                                    [POSITION] => 0
                                                                )

                                                            [MANUFACTURER_ID] => Array
                                                                (
                                                                    [NAME] => manufacturer_id
                                                                    [SIZE] => 
                                                                    [POSITION] => 1
                                                                )

                                                        )

                                                    [TYPE] => unique
                                                )

                                        )

                                    [_foreignKeys:protected] => Array
                                        (
                                            [IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID] => Array
                                                (
                                                    [FK_NAME] => IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID
                                                    [COLUMN_NAME] => customer_id
                                                    [REF_TABLE_NAME] => customer_entity
                                                    [REF_COLUMN_NAME] => entity_id
                                                    [ON_DELETE] => CASCADE
                                                    [ON_UPDATE] => CASCADE
                                                )

                                            [IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID] => Array
                                                (
                                                    [FK_NAME] => IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID
                                                    [COLUMN_NAME] => manufacturer_id
                                                    [REF_TABLE_NAME] => advox_manufacturer
                                                    [REF_COLUMN_NAME] => id
                                                    [ON_DELETE] => CASCADE
                                                    [ON_UPDATE] => CASCADE
                                                )

                                        )

                                    [_options:protected] => Array
                                        (
                                            [type] => INNODB
                                            [charset] => utf8
                                            [collate] => utf8_general_ci
                                        )

                                )

                        )

                )

            [7] => Array
                (
                    [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /home/paker/www/latest/app/code/local/Advox/Wholesale/sql/advox_wholesale_setup/upgrade-0.2.7-0.2.8.php
                        )

                    [function] => include
                )

            [8] => Array
                (
                    [file] => /home/paker/www/latest/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.2.7
                            [2] => 0.3.5
                        )

                )

            [9] => Array
                (
                    [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 320
                    [function] => _upgradeResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 0.2.7
                            [1] => 0.3.5
                        )

                )

            [10] => Array
                (
                    [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 235
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [11] => Array
                (
                    [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/App.php
                    [line] => 417
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [12] => Array
                (
                    [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/App.php
                    [line] => 344
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [13] => Array
                (
                    [file] => /home/paker/www/latest/app/Mage.php
                    [line] => 683
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => powerbody_co_uk
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [14] => Array
                (
                    [file] => /home/paker/www/latest/index.php
                    [line] => 84
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => powerbody_co_uk
                            [1] => store
                        )

                )

        )

    [previous:Exception:private] => PDOException Object
        (
            [message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'wholesale_manufacturer_discount' already exists
            [string:Exception:private] => 
            [code:protected] => 42S01
            [file:protected] => /home/paker/www/latest/lib/Zend/Db/Statement/Pdo.php
            [line:protected] => 228
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /home/paker/www/latest/lib/Zend/Db/Statement/Pdo.php
                            [line] => 228
                            [function] => execute
                            [class] => PDOStatement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/paker/www/latest/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/paker/www/latest/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/paker/www/latest/lib/Zend/Db/Adapter/Abstract.php
                            [line] => 479
                            [function] => execute
                            [class] => Zend_Db_Statement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [4] => Array
                        (
                            [file] => /home/paker/www/latest/lib/Zend/Db/Adapter/Pdo/Abstract.php
                            [line] => 238
                            [function] => query
                            [class] => Zend_Db_Adapter_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `wholesale_manufacturer_discount` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `customer_id` int UNSIGNED NOT NULL COMMENT 'Customer_id',
  `manufacturer_id` int UNSIGNED NOT NULL COMMENT 'Manufacturer_id',
  `discount_value` smallint UNSIGNED NOT NULL COMMENT 'Discount_value',
  `min_order_amount` int UNSIGNED NOT NULL default '0' COMMENT 'Min_order_amount',
  PRIMARY KEY (`id`),
  UNIQUE `UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID` (`customer_id`, `manufacturer_id`),
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID` FOREIGN KEY (`manufacturer_id`) REFERENCES `advox_manufacturer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='wholesale_manufacturer_discount' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [5] => Array
                        (
                            [file] => /home/paker/www/latest/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 428
                            [function] => query
                            [class] => Zend_Db_Adapter_Pdo_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `wholesale_manufacturer_discount` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `customer_id` int UNSIGNED NOT NULL COMMENT 'Customer_id',
  `manufacturer_id` int UNSIGNED NOT NULL COMMENT 'Manufacturer_id',
  `discount_value` smallint UNSIGNED NOT NULL COMMENT 'Discount_value',
  `min_order_amount` int UNSIGNED NOT NULL default '0' COMMENT 'Min_order_amount',
  PRIMARY KEY (`id`),
  UNIQUE `UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID` (`customer_id`, `manufacturer_id`),
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID` FOREIGN KEY (`manufacturer_id`) REFERENCES `advox_manufacturer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='wholesale_manufacturer_discount' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [file] => /home/paker/www/latest/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 2048
                            [function] => query
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `wholesale_manufacturer_discount` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `customer_id` int UNSIGNED NOT NULL COMMENT 'Customer_id',
  `manufacturer_id` int UNSIGNED NOT NULL COMMENT 'Manufacturer_id',
  `discount_value` smallint UNSIGNED NOT NULL COMMENT 'Discount_value',
  `min_order_amount` int UNSIGNED NOT NULL default '0' COMMENT 'Min_order_amount',
  PRIMARY KEY (`id`),
  UNIQUE `UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID` (`customer_id`, `manufacturer_id`),
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID` FOREIGN KEY (`manufacturer_id`) REFERENCES `advox_manufacturer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='wholesale_manufacturer_discount' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                                )

                        )

                    [7] => Array
                        (
                            [file] => /home/paker/www/latest/app/code/local/Advox/Wholesale/sql/advox_wholesale_setup/upgrade-0.2.7-0.2.8.php
                            [line] => 91
                            [function] => createTable
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Varien_Db_Ddl_Table Object
                                        (
                                            [_tableName:protected] => wholesale_manufacturer_discount
                                            [_schemaName:protected] => 
                                            [_tableComment:protected] => wholesale_manufacturer_discount
                                            [_columns:protected] => Array
                                                (
                                                    [ID] => Array
                                                        (
                                                            [COLUMN_NAME] => id
                                                            [COLUMN_TYPE] => integer
                                                            [COLUMN_POSITION] => 0
                                                            [DATA_TYPE] => integer
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 1
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 1
                                                            [COMMENT] => Id
                                                        )

                                                    [CUSTOMER_ID] => Array
                                                        (
                                                            [COLUMN_NAME] => customer_id
                                                            [COLUMN_TYPE] => integer
                                                            [COLUMN_POSITION] => 1
                                                            [DATA_TYPE] => integer
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Customer_id
                                                        )

                                                    [MANUFACTURER_ID] => Array
                                                        (
                                                            [COLUMN_NAME] => manufacturer_id
                                                            [COLUMN_TYPE] => integer
                                                            [COLUMN_POSITION] => 2
                                                            [DATA_TYPE] => integer
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Manufacturer_id
                                                        )

                                                    [DISCOUNT_VALUE] => Array
                                                        (
                                                            [COLUMN_NAME] => discount_value
                                                            [COLUMN_TYPE] => smallint
                                                            [COLUMN_POSITION] => 3
                                                            [DATA_TYPE] => smallint
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Discount_value
                                                        )

                                                    [MIN_ORDER_AMOUNT] => Array
                                                        (
                                                            [COLUMN_NAME] => min_order_amount
                                                            [COLUMN_TYPE] => integer
                                                            [COLUMN_POSITION] => 4
                                                            [DATA_TYPE] => integer
                                                            [DEFAULT] => 0
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Min_order_amount
                                                        )

                                                )

                                            [_indexes:protected] => Array
                                                (
                                                    [UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID] => Array
                                                        (
                                                            [INDEX_NAME] => UNQ_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID_MANUFACTURER_ID
                                                            [COLUMNS] => Array
                                                                (
                                                                    [CUSTOMER_ID] => Array
                                                                        (
                                                                            [NAME] => customer_id
                                                                            [SIZE] => 
                                                                            [POSITION] => 0
                                                                        )

                                                                    [MANUFACTURER_ID] => Array
                                                                        (
                                                                            [NAME] => manufacturer_id
                                                                            [SIZE] => 
                                                                            [POSITION] => 1
                                                                        )

                                                                )

                                                            [TYPE] => unique
                                                        )

                                                )

                                            [_foreignKeys:protected] => Array
                                                (
                                                    [IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID] => Array
                                                        (
                                                            [FK_NAME] => IDX_WHOLESALE_MANUFACTURER_DISCOUNT_CUSTOMER_ID
                                                            [COLUMN_NAME] => customer_id
                                                            [REF_TABLE_NAME] => customer_entity
                                                            [REF_COLUMN_NAME] => entity_id
                                                            [ON_DELETE] => CASCADE
                                                            [ON_UPDATE] => CASCADE
                                                        )

                                                    [IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID] => Array
                                                        (
                                                            [FK_NAME] => IDX_WHOLESALE_MANUFACTURER_DISCOUNT_MANUFACTURER_ID
                                                            [COLUMN_NAME] => manufacturer_id
                                                            [REF_TABLE_NAME] => advox_manufacturer
                                                            [REF_COLUMN_NAME] => id
                                                            [ON_DELETE] => CASCADE
                                                            [ON_UPDATE] => CASCADE
                                                        )

                                                )

                                            [_options:protected] => Array
                                                (
                                                    [type] => INNODB
                                                    [charset] => utf8
                                                    [collate] => utf8_general_ci
                                                )

                                        )

                                )

                        )

                    [8] => Array
                        (
                            [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 624
                            [args] => Array
                                (
                                    [0] => /home/paker/www/latest/app/code/local/Advox/Wholesale/sql/advox_wholesale_setup/upgrade-0.2.7-0.2.8.php
                                )

                            [function] => include
                        )

                    [9] => Array
                        (
                            [file] => /home/paker/www/latest/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.2.7
                                    [2] => 0.3.5
                                )

                        )

                    [10] => Array
                        (
                            [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 320
                            [function] => _upgradeResourceDb
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => 0.2.7
                                    [1] => 0.3.5
                                )

                        )

                    [11] => Array
                        (
                            [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 235
                            [function] => applyUpdates
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [12] => Array
                        (
                            [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/App.php
                            [line] => 417
                            [function] => applyAllUpdates
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [13] => Array
                        (
                            [file] => /home/paker/www/latest/app/code/core/Mage/Core/Model/App.php
                            [line] => 344
                            [function] => _initModules
                            [class] => Mage_Core_Model_App
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [14] => Array
                        (
                            [file] => /home/paker/www/latest/app/Mage.php
                            [line] => 683
                            [function] => run
                            [class] => Mage_Core_Model_App
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                            [scope_code] => powerbody_co_uk
                                            [scope_type] => store
                                            [options] => Array
                                                (
                                                )

                                        )

                                )

                        )

                    [15] => Array
                        (
                            [file] => /home/paker/www/latest/index.php
                            [line] => 84
                            [function] => run
                            [class] => Mage
                            [type] => ::
                            [args] => Array
                                (
                                    [0] => powerbody_co_uk
                                    [1] => store
                                )

                        )

                )

            [previous:Exception:private] => 
            [errorInfo] => Array
                (
                    [0] => 42S01
                    [1] => 1050
                    [2] => Table 'wholesale_manufacturer_discount' already exists
                )

        )

)