PDOException Object
(
[message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'mgn_salesrule_label' already exists
[string:private] =>
[code:protected] => 42S01
[file:protected] => /home1/danasnow/public_html/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line:protected] => 277
[trace:private] => Array
(
[0] => Array
(
[file] => /home1/danasnow/public_html/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 277
[function] => query
[class] => PDO
[type] => ->
[args] => Array
(
[0] => CREATE TABLE `mgn_salesrule_label` (
`label_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rule_id` int(10) unsigned NOT NULL,
`store_id` smallint(5) unsigned NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`label_id`),
UNIQUE KEY `UNQ_RULE_STORE` (`rule_id`,`store_id`),
KEY `IDX_STORE_ID` (`store_id`),
KEY `IDX_RULE_ID` (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
)
)
[1] => Array
(
[file] => /home1/danasnow/public_html/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 401
[function] => raw_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => CREATE TABLE `mgn_salesrule_label` (
`label_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rule_id` int(10) unsigned NOT NULL,
`store_id` smallint(5) unsigned NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`label_id`),
UNIQUE KEY `UNQ_RULE_STORE` (`rule_id`,`store_id`),
KEY `IDX_STORE_ID` (`store_id`),
KEY `IDX_RULE_ID` (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
)
)
[2] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 636
[function] => multi_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] =>
CREATE TABLE `mgn_salesrule_label` (
`label_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rule_id` int(10) unsigned NOT NULL,
`store_id` smallint(5) unsigned NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`label_id`),
UNIQUE KEY `UNQ_RULE_STORE` (`rule_id`,`store_id`),
KEY `IDX_STORE_ID` (`store_id`),
KEY `IDX_RULE_ID` (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
)
)
[3] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/SalesRule/sql/salesrule_setup/mysql4-upgrade-0.7.8-0.7.9.php
[line] => 47
[function] => run
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] =>
CREATE TABLE `mgn_salesrule_label` (
`label_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rule_id` int(10) unsigned NOT NULL,
`store_id` smallint(5) unsigned NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`label_id`),
UNIQUE KEY `UNQ_RULE_STORE` (`rule_id`,`store_id`),
KEY `IDX_STORE_ID` (`store_id`),
KEY `IDX_RULE_ID` (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
)
)
[4] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 376
[args] => Array
(
[0] => /home1/danasnow/public_html/shop/app/code/core/Mage/SalesRule/sql/salesrule_setup/mysql4-upgrade-0.7.8-0.7.9.php
)
[function] => include
)
[5] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 289
[function] => _modifyResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => upgrade
[1] => 0.7.8
[2] => 1.4.0.0.6
)
)
[6] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 233
[function] => _upgradeResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => 0.7.8
[1] => 1.4.0.0.6
)
)
[7] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 161
[function] => applyUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
)
)
[8] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/App.php
[line] => 399
[function] => applyAllUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ::
[args] => Array
(
)
)
[9] => Array
(
[file] => /home1/danasnow/public_html/shop/app/code/core/Mage/Core/Model/App.php
[line] => 329
[function] => _initModules
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
)
)
[10] => Array
(
[file] => /home1/danasnow/public_html/shop/app/Mage.php
[line] => 627
[function] => run
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] => Array
(
[scope_code] =>
[scope_type] => store
[options] => Array
(
)
)
)
)
[11] => Array
(
[file] => /home1/danasnow/public_html/shop/index.php
[line] => 80
[function] => run
[class] => Mage
[type] => ::
[args] => Array
(
[0] =>
[1] => store
)
)
)
[errorInfo] => Array
(
[0] => 42S01
[1] => 1050
[2] => Table 'mgn_salesrule_label' already exists
)
)