PDOException Object
(
[message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'maggift_message' already exists
[string:private] =>
[code:protected] => 42S01
[file:protected] => /home/anitasex/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line:protected] => 187
[trace:private] => Array
(
[0] => Array
(
[file] => /home/anitasex/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 187
[function] => query
[class] => PDO
[type] => ->
[args] => Array
(
[0] => -- DROP TABLE IF EXISTS maggift_message;
CREATE TABLE maggift_message (
`gift_message_id` int(7) unsigned NOT NULL auto_increment,
`customer_id` int(7) unsigned NOT NULL default '0',
`sender` varchar(255) NOT NULL default '',
`recipient` varchar(255) NOT NULL default '',
`message` text NOT NULL,
PRIMARY KEY (`gift_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
)
)
[1] => Array
(
[file] => /home/anitasex/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 249
[function] => raw_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => -- DROP TABLE IF EXISTS maggift_message;
CREATE TABLE maggift_message (
`gift_message_id` int(7) unsigned NOT NULL auto_increment,
`customer_id` int(7) unsigned NOT NULL default '0',
`sender` varchar(255) NOT NULL default '',
`recipient` varchar(255) NOT NULL default '',
`message` text NOT NULL,
PRIMARY KEY (`gift_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
)
)
[2] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 493
[function] => multi_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] =>
-- DROP TABLE IF EXISTS maggift_message;
CREATE TABLE maggift_message (
`gift_message_id` int(7) unsigned NOT NULL auto_increment,
`customer_id` int(7) unsigned NOT NULL default '0',
`sender` varchar(255) NOT NULL default '',
`recipient` varchar(255) NOT NULL default '',
`message` text NOT NULL,
PRIMARY KEY (`gift_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
)
)
[3] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-install-0.7.0.php
[line] => 44
[function] => run
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] =>
-- DROP TABLE IF EXISTS maggift_message;
CREATE TABLE maggift_message (
`gift_message_id` int(7) unsigned NOT NULL auto_increment,
`customer_id` int(7) unsigned NOT NULL default '0',
`sender` varchar(255) NOT NULL default '',
`recipient` varchar(255) NOT NULL default '',
`message` text NOT NULL,
PRIMARY KEY (`gift_message_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
)
)
[4] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 268
[args] => Array
(
[0] => /home/anitasex/public_html/app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-install-0.7.0.php
)
[function] => include
)
[5] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 166
[function] => _modifyResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => install
[1] =>
[2] => 0.7.2
)
)
[6] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 154
[function] => _installResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => 0.7.2
)
)
[7] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 120
[function] => applyUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
)
)
[8] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/Config.php
[line] => 215
[function] => applyAllUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ::
[args] => Array
(
)
)
[9] => Array
(
[file] => /home/anitasex/public_html/app/code/core/Mage/Core/Model/App.php
[line] => 243
[function] => init
[class] => Mage_Core_Model_Config
[type] => ->
[args] => Array
(
[0] => Array
(
)
)
)
[10] => Array
(
[file] => /home/anitasex/public_html/app/Mage.php
[line] => 424
[function] => init
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] =>
[1] => store
[2] => Array
(
)
)
)
[11] => Array
(
[file] => /home/anitasex/public_html/app/Mage.php
[line] => 443
[function] => app
[class] => Mage
[type] => ::
[args] => Array
(
[0] =>
[1] => store
[2] => Array
(
)
)
)
[12] => Array
(
[file] => /home/anitasex/public_html/index.php
[line] => 52
[function] => run
[class] => Mage
[type] => ::
[args] => Array
(
)
)
)
[errorInfo] => Array
(
[0] => 42S01
[1] => 1050
[2] => Table 'maggift_message' already exists
)
)