Merge pull request #9 from jaafit/master

Fix potential DB update error
This commit is contained in:
Kevin McInturff 2013-05-25 04:45:40 -07:00
commit 0270697fb7
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ $installer = $this;
$installer->startSetup(); $installer->startSetup();
$installer->run(" $installer->run("
CREATE TABLE IF NOT EXISTS `bitpay_ipns` ( CREATE TABLE IF NOT EXISTS `{$installer->getTable('Bitcoins/ipn')}` (
`id` int(10) unsigned NOT NULL auto_increment, `id` int(10) unsigned NOT NULL auto_increment,
`quote_id` int(10) unsigned default NULL, `quote_id` int(10) unsigned default NULL,
`order_id` int(10) unsigned default NULL, `order_id` int(10) unsigned default NULL,

View File

@ -3,6 +3,6 @@
$installer = $this; $installer = $this;
$installer->startSetup(); $installer->startSetup();
$installer->run("ALTER TABLE `bitpay_ipns` ADD `pos_data` VARCHAR( 256 ) NOT NULL AFTER `url`;"); $installer->run("ALTER TABLE `{$installer->getTable('Bitcoins/ipn')}` ADD `pos_data` VARCHAR( 256 ) NOT NULL AFTER `url`;");
$installer->endSetup(); $installer->endSetup();