PDOException Object
(
    [message:protected] => SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'email_flag'
    [string:Exception:private] => 
    [code:protected] => 42S21
    [file:protected] => /var/www/html/includes/src/__default.php
    [line:protected] => 64620
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 64620
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/html/includes/src/Varien_Db_Statement_Pdo_Mysql.php
                    [line] => 110
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 64202
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 53764
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 54806
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD COLUMN `email_flag` varchar(100) NOT NULL DEFAULT "No" 
                            [1] => Array
                                (
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 55654
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD COLUMN `email_flag` varchar(100) NOT NULL DEFAULT "No" 
                            [1] => Array
                                (
                                )

                        )

                )

            [6] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 55575
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD COLUMN `email_flag` varchar(100) NOT NULL DEFAULT "No" 
                        )

                )

            [7] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 56074
                    [function] => raw_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD COLUMN `email_flag` varchar(100) NOT NULL DEFAULT "No" 
                        )

                )

            [8] => Array
                (
                    [file] => /var/www/html/app/code/local/SM/XPos/sql/xpos_setup/mysql4-upgrade-1.0.5-1.0.6.php
                    [line] => 12
                    [function] => addColumn
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => sales_flat_quote
                            [1] => email_flag
                            [2] => varchar(100) NOT NULL DEFAULT "No"
                        )

                )

            [9] => Array
                (
                    [file] => /var/www/html/includes/src/Mage_Core_Model_Resource_Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /var/www/html/app/code/local/SM/XPos/sql/xpos_setup/mysql4-upgrade-1.0.5-1.0.6.php
                        )

                    [function] => include
                )

            [10] => Array
                (
                    [file] => /var/www/html/includes/src/Mage_Core_Model_Resource_Setup.php
                    [line] => 437
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => upgrade
                            [1] => 1.0.5
                            [2] => 1.0.6
                        )

                )

            [11] => Array
                (
                    [file] => /var/www/html/includes/src/Mage_Core_Model_Resource_Setup.php
                    [line] => 320
                    [function] => _upgradeResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.0.5
                            [1] => 1.0.6
                        )

                )

            [12] => Array
                (
                    [file] => /var/www/html/includes/src/Mage_Core_Model_Resource_Setup.php
                    [line] => 235
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [13] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 20605
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [14] => Array
                (
                    [file] => /var/www/html/includes/src/__default.php
                    [line] => 20531
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [15] => Array
                (
                    [file] => /var/www/html/app/Mage.php
                    [line] => 683
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => ifloor
                                    [scope_type] => website
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [16] => Array
                (
                    [file] => /var/www/html/index.php
                    [line] => 83
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => ifloor
                            [1] => website
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => 42S21
            [1] => 1060
            [2] => Duplicate column name 'email_flag'
        )

)