Zend_Db_Statement_Exception Object
(
    [_previous:Zend_Exception:private] => 
    [message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mage_tax_order_aggregated_updated' already exists
    [string:Exception:private] => 
    [code:protected] => 42
    [file:protected] => /home/charlesh/public_html/store/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 234
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/charlesh/public_html/store/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/charlesh/public_html/store/lib/Zend/Db/Statement.php
                    [line] => 300
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

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

                        )

                )

            [3] => Array
                (
                    [file] => /home/charlesh/public_html/store/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `mage_tax_order_aggregated_updated` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `period` date NULL COMMENT 'Period',
  `store_id` smallint UNSIGNED NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float NULL COMMENT 'Percent',
  `orders_count` int UNSIGNED NOT NULL default '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE `AAD307B817CB79BE9A44B044FC5CD656` (`period`, `store_id`, `code`, `percent`, `order_status`),
  INDEX `IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_71F363308A4EC8C6B82804C0173749F4` FOREIGN KEY (`store_id`) REFERENCES `mage_core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='Mage Tax Order Aggregated Updated' ENGINE=InnoDB charset=utf8 COLLATE=utf8_general_ci
                            [1] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /home/charlesh/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 389
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `mage_tax_order_aggregated_updated` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `period` date NULL COMMENT 'Period',
  `store_id` smallint UNSIGNED NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float NULL COMMENT 'Percent',
  `orders_count` int UNSIGNED NOT NULL default '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE `AAD307B817CB79BE9A44B044FC5CD656` (`period`, `store_id`, `code`, `percent`, `order_status`),
  INDEX `IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_71F363308A4EC8C6B82804C0173749F4` FOREIGN KEY (`store_id`) REFERENCES `mage_core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='Mage Tax Order Aggregated Updated' ENGINE=InnoDB charset=utf8 COLLATE=utf8_general_ci
                            [1] => Array
                                (
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /home/charlesh/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 2018
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `mage_tax_order_aggregated_updated` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `period` date NULL COMMENT 'Period',
  `store_id` smallint UNSIGNED NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float NULL COMMENT 'Percent',
  `orders_count` int UNSIGNED NOT NULL default '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE `AAD307B817CB79BE9A44B044FC5CD656` (`period`, `store_id`, `code`, `percent`, `order_status`),
  INDEX `IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_71F363308A4EC8C6B82804C0173749F4` FOREIGN KEY (`store_id`) REFERENCES `mage_core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='Mage Tax Order Aggregated Updated' ENGINE=InnoDB charset=utf8 COLLATE=utf8_general_ci
                        )

                )

            [6] => Array
                (
                    [file] => /home/charlesh/public_html/store/app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.0-1.6.0.1.php
                    [line] => 34
                    [function] => createTable
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Varien_Db_Ddl_Table Object
                                (
                                    [_tableName:protected] => mage_tax_order_aggregated_updated
                                    [_schemaName:protected] => 
                                    [_tableComment:protected] => Mage Tax Order Aggregated Updated
                                    [_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
                                                )

                                            [PERIOD] => Array
                                                (
                                                    [COLUMN_NAME] => period
                                                    [COLUMN_TYPE] => date
                                                    [COLUMN_POSITION] => 1
                                                    [DATA_TYPE] => date
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Period
                                                )

                                            [STORE_ID] => Array
                                                (
                                                    [COLUMN_NAME] => store_id
                                                    [COLUMN_TYPE] => smallint
                                                    [COLUMN_POSITION] => 2
                                                    [DATA_TYPE] => smallint
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Store Id
                                                )

                                            [CODE] => Array
                                                (
                                                    [COLUMN_NAME] => code
                                                    [COLUMN_TYPE] => text
                                                    [COLUMN_POSITION] => 3
                                                    [DATA_TYPE] => text
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 255
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Code
                                                )

                                            [ORDER_STATUS] => Array
                                                (
                                                    [COLUMN_NAME] => order_status
                                                    [COLUMN_TYPE] => text
                                                    [COLUMN_POSITION] => 4
                                                    [DATA_TYPE] => text
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 50
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Order Status
                                                )

                                            [PERCENT] => Array
                                                (
                                                    [COLUMN_NAME] => percent
                                                    [COLUMN_TYPE] => float
                                                    [COLUMN_POSITION] => 5
                                                    [DATA_TYPE] => float
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Percent
                                                )

                                            [ORDERS_COUNT] => Array
                                                (
                                                    [COLUMN_NAME] => orders_count
                                                    [COLUMN_TYPE] => integer
                                                    [COLUMN_POSITION] => 6
                                                    [DATA_TYPE] => integer
                                                    [DEFAULT] => '0'
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Orders Count
                                                )

                                            [TAX_BASE_AMOUNT_SUM] => Array
                                                (
                                                    [COLUMN_NAME] => tax_base_amount_sum
                                                    [COLUMN_TYPE] => float
                                                    [COLUMN_POSITION] => 7
                                                    [DATA_TYPE] => float
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Tax Base Amount Sum
                                                )

                                        )

                                    [_indexes:protected] => Array
                                        (
                                            [AAD307B817CB79BE9A44B044FC5CD656] => Array
                                                (
                                                    [INDEX_NAME] => AAD307B817CB79BE9A44B044FC5CD656
                                                    [COLUMNS] => Array
                                                        (
                                                            [PERIOD] => Array
                                                                (
                                                                    [NAME] => period
                                                                    [SIZE] => 
                                                                    [POSITION] => 0
                                                                )

                                                            [STORE_ID] => Array
                                                                (
                                                                    [NAME] => store_id
                                                                    [SIZE] => 
                                                                    [POSITION] => 1
                                                                )

                                                            [CODE] => Array
                                                                (
                                                                    [NAME] => code
                                                                    [SIZE] => 
                                                                    [POSITION] => 2
                                                                )

                                                            [PERCENT] => Array
                                                                (
                                                                    [NAME] => percent
                                                                    [SIZE] => 
                                                                    [POSITION] => 3
                                                                )

                                                            [ORDER_STATUS] => Array
                                                                (
                                                                    [NAME] => order_status
                                                                    [SIZE] => 
                                                                    [POSITION] => 4
                                                                )

                                                        )

                                                    [TYPE] => unique
                                                )

                                            [IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID] => Array
                                                (
                                                    [INDEX_NAME] => IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID
                                                    [COLUMNS] => Array
                                                        (
                                                            [STORE_ID] => Array
                                                                (
                                                                    [NAME] => store_id
                                                                    [SIZE] => 
                                                                    [POSITION] => 0
                                                                )

                                                        )

                                                    [TYPE] => index
                                                )

                                        )

                                    [_foreignKeys:protected] => Array
                                        (
                                            [FK_71F363308A4EC8C6B82804C0173749F4] => Array
                                                (
                                                    [FK_NAME] => FK_71F363308A4EC8C6B82804C0173749F4
                                                    [COLUMN_NAME] => store_id
                                                    [REF_TABLE_NAME] => mage_core_store
                                                    [REF_COLUMN_NAME] => store_id
                                                    [ON_DELETE] => CASCADE
                                                    [ON_UPDATE] => CASCADE
                                                )

                                        )

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

                                )

                        )

                )

            [7] => Array
                (
                    [file] => /home/charlesh/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /home/charlesh/public_html/store/app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.0-1.6.0.1.php
                        )

                    [function] => include
                )

            [8] => Array
                (
                    [file] => /home/charlesh/public_html/store/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] => 1.6.0.0
                            [2] => 1.6.0.3
                        )

                )

            [9] => Array
                (
                    [file] => /home/charlesh/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 320
                    [function] => _upgradeResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.6.0.0
                            [1] => 1.6.0.3
                        )

                )

            [10] => Array
                (
                    [file] => /home/charlesh/public_html/store/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/charlesh/public_html/store/app/code/core/Mage/Core/Model/App.php
                    [line] => 412
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [12] => Array
                (
                    [file] => /home/charlesh/public_html/store/app/code/core/Mage/Core/Model/App.php
                    [line] => 338
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [13] => Array
                (
                    [file] => /home/charlesh/public_html/store/app/Mage.php
                    [line] => 640
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => 
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [14] => Array
                (
                    [file] => /home/charlesh/public_html/store/index.php
                    [line] => 80
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => store
                        )

                )

        )

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

                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/charlesh/public_html/store/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/charlesh/public_html/store/lib/Zend/Db/Statement.php
                            [line] => 300
                            [function] => _execute
                            [class] => Varien_Db_Statement_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [3] => Array
                        (
                            [file] => /home/charlesh/public_html/store/lib/Zend/Db/Adapter/Abstract.php
                            [line] => 479
                            [function] => execute
                            [class] => Zend_Db_Statement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [4] => Array
                        (
                            [file] => /home/charlesh/public_html/store/lib/Zend/Db/Adapter/Pdo/Abstract.php
                            [line] => 238
                            [function] => query
                            [class] => Zend_Db_Adapter_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `mage_tax_order_aggregated_updated` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `period` date NULL COMMENT 'Period',
  `store_id` smallint UNSIGNED NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float NULL COMMENT 'Percent',
  `orders_count` int UNSIGNED NOT NULL default '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE `AAD307B817CB79BE9A44B044FC5CD656` (`period`, `store_id`, `code`, `percent`, `order_status`),
  INDEX `IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_71F363308A4EC8C6B82804C0173749F4` FOREIGN KEY (`store_id`) REFERENCES `mage_core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='Mage Tax Order Aggregated Updated' ENGINE=InnoDB charset=utf8 COLLATE=utf8_general_ci
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [5] => Array
                        (
                            [file] => /home/charlesh/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 389
                            [function] => query
                            [class] => Zend_Db_Adapter_Pdo_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `mage_tax_order_aggregated_updated` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `period` date NULL COMMENT 'Period',
  `store_id` smallint UNSIGNED NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float NULL COMMENT 'Percent',
  `orders_count` int UNSIGNED NOT NULL default '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE `AAD307B817CB79BE9A44B044FC5CD656` (`period`, `store_id`, `code`, `percent`, `order_status`),
  INDEX `IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_71F363308A4EC8C6B82804C0173749F4` FOREIGN KEY (`store_id`) REFERENCES `mage_core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='Mage Tax Order Aggregated Updated' ENGINE=InnoDB charset=utf8 COLLATE=utf8_general_ci
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [file] => /home/charlesh/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 2018
                            [function] => query
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `mage_tax_order_aggregated_updated` (
  `id` int UNSIGNED NOT NULL auto_increment COMMENT 'Id',
  `period` date NULL COMMENT 'Period',
  `store_id` smallint UNSIGNED NULL COMMENT 'Store Id',
  `code` varchar(255) NOT NULL COMMENT 'Code',
  `order_status` varchar(50) NOT NULL COMMENT 'Order Status',
  `percent` float NULL COMMENT 'Percent',
  `orders_count` int UNSIGNED NOT NULL default '0' COMMENT 'Orders Count',
  `tax_base_amount_sum` float NULL COMMENT 'Tax Base Amount Sum',
  PRIMARY KEY (`id`),
  UNIQUE `AAD307B817CB79BE9A44B044FC5CD656` (`period`, `store_id`, `code`, `percent`, `order_status`),
  INDEX `IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID` (`store_id`),
  CONSTRAINT `FK_71F363308A4EC8C6B82804C0173749F4` FOREIGN KEY (`store_id`) REFERENCES `mage_core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COMMENT='Mage Tax Order Aggregated Updated' ENGINE=InnoDB charset=utf8 COLLATE=utf8_general_ci
                                )

                        )

                    [7] => Array
                        (
                            [file] => /home/charlesh/public_html/store/app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.0-1.6.0.1.php
                            [line] => 34
                            [function] => createTable
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Varien_Db_Ddl_Table Object
                                        (
                                            [_tableName:protected] => mage_tax_order_aggregated_updated
                                            [_schemaName:protected] => 
                                            [_tableComment:protected] => Mage Tax Order Aggregated Updated
                                            [_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
                                                        )

                                                    [PERIOD] => Array
                                                        (
                                                            [COLUMN_NAME] => period
                                                            [COLUMN_TYPE] => date
                                                            [COLUMN_POSITION] => 1
                                                            [DATA_TYPE] => date
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Period
                                                        )

                                                    [STORE_ID] => Array
                                                        (
                                                            [COLUMN_NAME] => store_id
                                                            [COLUMN_TYPE] => smallint
                                                            [COLUMN_POSITION] => 2
                                                            [DATA_TYPE] => smallint
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Store Id
                                                        )

                                                    [CODE] => Array
                                                        (
                                                            [COLUMN_NAME] => code
                                                            [COLUMN_TYPE] => text
                                                            [COLUMN_POSITION] => 3
                                                            [DATA_TYPE] => text
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 255
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Code
                                                        )

                                                    [ORDER_STATUS] => Array
                                                        (
                                                            [COLUMN_NAME] => order_status
                                                            [COLUMN_TYPE] => text
                                                            [COLUMN_POSITION] => 4
                                                            [DATA_TYPE] => text
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 50
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Order Status
                                                        )

                                                    [PERCENT] => Array
                                                        (
                                                            [COLUMN_NAME] => percent
                                                            [COLUMN_TYPE] => float
                                                            [COLUMN_POSITION] => 5
                                                            [DATA_TYPE] => float
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Percent
                                                        )

                                                    [ORDERS_COUNT] => Array
                                                        (
                                                            [COLUMN_NAME] => orders_count
                                                            [COLUMN_TYPE] => integer
                                                            [COLUMN_POSITION] => 6
                                                            [DATA_TYPE] => integer
                                                            [DEFAULT] => '0'
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Orders Count
                                                        )

                                                    [TAX_BASE_AMOUNT_SUM] => Array
                                                        (
                                                            [COLUMN_NAME] => tax_base_amount_sum
                                                            [COLUMN_TYPE] => float
                                                            [COLUMN_POSITION] => 7
                                                            [DATA_TYPE] => float
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Tax Base Amount Sum
                                                        )

                                                )

                                            [_indexes:protected] => Array
                                                (
                                                    [AAD307B817CB79BE9A44B044FC5CD656] => Array
                                                        (
                                                            [INDEX_NAME] => AAD307B817CB79BE9A44B044FC5CD656
                                                            [COLUMNS] => Array
                                                                (
                                                                    [PERIOD] => Array
                                                                        (
                                                                            [NAME] => period
                                                                            [SIZE] => 
                                                                            [POSITION] => 0
                                                                        )

                                                                    [STORE_ID] => Array
                                                                        (
                                                                            [NAME] => store_id
                                                                            [SIZE] => 
                                                                            [POSITION] => 1
                                                                        )

                                                                    [CODE] => Array
                                                                        (
                                                                            [NAME] => code
                                                                            [SIZE] => 
                                                                            [POSITION] => 2
                                                                        )

                                                                    [PERCENT] => Array
                                                                        (
                                                                            [NAME] => percent
                                                                            [SIZE] => 
                                                                            [POSITION] => 3
                                                                        )

                                                                    [ORDER_STATUS] => Array
                                                                        (
                                                                            [NAME] => order_status
                                                                            [SIZE] => 
                                                                            [POSITION] => 4
                                                                        )

                                                                )

                                                            [TYPE] => unique
                                                        )

                                                    [IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID] => Array
                                                        (
                                                            [INDEX_NAME] => IDX_MAGE_TAX_ORDER_AGGREGATED_UPDATED_STORE_ID
                                                            [COLUMNS] => Array
                                                                (
                                                                    [STORE_ID] => Array
                                                                        (
                                                                            [NAME] => store_id
                                                                            [SIZE] => 
                                                                            [POSITION] => 0
                                                                        )

                                                                )

                                                            [TYPE] => index
                                                        )

                                                )

                                            [_foreignKeys:protected] => Array
                                                (
                                                    [FK_71F363308A4EC8C6B82804C0173749F4] => Array
                                                        (
                                                            [FK_NAME] => FK_71F363308A4EC8C6B82804C0173749F4
                                                            [COLUMN_NAME] => store_id
                                                            [REF_TABLE_NAME] => mage_core_store
                                                            [REF_COLUMN_NAME] => store_id
                                                            [ON_DELETE] => CASCADE
                                                            [ON_UPDATE] => CASCADE
                                                        )

                                                )

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

                                        )

                                )

                        )

                    [8] => Array
                        (
                            [file] => /home/charlesh/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 624
                            [args] => Array
                                (
                                    [0] => /home/charlesh/public_html/store/app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.0-1.6.0.1.php
                                )

                            [function] => include
                        )

                    [9] => Array
                        (
                            [file] => /home/charlesh/public_html/store/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] => 1.6.0.0
                                    [2] => 1.6.0.3
                                )

                        )

                    [10] => Array
                        (
                            [file] => /home/charlesh/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 320
                            [function] => _upgradeResourceDb
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => 1.6.0.0
                                    [1] => 1.6.0.3
                                )

                        )

                    [11] => Array
                        (
                            [file] => /home/charlesh/public_html/store/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/charlesh/public_html/store/app/code/core/Mage/Core/Model/App.php
                            [line] => 412
                            [function] => applyAllUpdates
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [13] => Array
                        (
                            [file] => /home/charlesh/public_html/store/app/code/core/Mage/Core/Model/App.php
                            [line] => 338
                            [function] => _initModules
                            [class] => Mage_Core_Model_App
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [14] => Array
                        (
                            [file] => /home/charlesh/public_html/store/app/Mage.php
                            [line] => 640
                            [function] => run
                            [class] => Mage_Core_Model_App
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                            [scope_code] => 
                                            [scope_type] => store
                                            [options] => Array
                                                (
                                                )

                                        )

                                )

                        )

                    [15] => Array
                        (
                            [file] => /home/charlesh/public_html/store/index.php
                            [line] => 80
                            [function] => run
                            [class] => Mage
                            [type] => ::
                            [args] => Array
                                (
                                    [0] => 
                                    [1] => store
                                )

                        )

                )

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

        )

)