Skip to content

Commit

Permalink
Merge pull request #52 from sudheernayak31/master
Browse files Browse the repository at this point in the history
#51: Resolve DB prefix with Upgrade Schema
  • Loading branch information
Derrick Heesbeen authored Jul 6, 2020
2 parents 447179f + 4aad566 commit 3ba424a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ public function upgrade(
) {
if (version_compare($context->getVersion(), "1.0.1", "<")) {
$connection = $setup->getConnection();
if (!$connection->tableColumnExists('experius_emailcatcher', 'recipient')) {
if (!$connection->tableColumnExists($setup->getTable('experius_emailcatcher'), 'recipient')) {
$connection->changeColumn(
'experius_emailcatcher',
$setup->getTable('experius_emailcatcher'),
'to',
'recipient',
['type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT]
);
}
if (!$connection->tableColumnExists('experius_emailcatcher', 'sender')) {
if (!$connection->tableColumnExists($setup->getTable('experius_emailcatcher'), 'sender')) {
$connection->changeColumn(
'experius_emailcatcher',
$setup->getTable('experius_emailcatcher'),
'from',
'sender',
['type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT]
);
}
}
}
}
}

0 comments on commit 3ba424a

Please sign in to comment.