Skip to content

Commit

Permalink
Vipps 1.3.7
Browse files Browse the repository at this point in the history
Installer: fix table names.
  • Loading branch information
olegmalichenkoatvaimo committed May 24, 2019
1 parent 4c634e4 commit b39676d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
private function fillVippsQuotes(ModuleDataSetupInterface $installer)
{
$connection = $installer->getConnection();
$tableName = $connection->getTableName('vipps_quote');
$tableName = $installer->getTable('vipps_quote');

/** @var Collection $collection */
$collection = $this->quoteCollectionFactory->create();
Expand Down
8 changes: 4 additions & 4 deletions Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function createVippsQuoteTable(SchemaSetupInterface $installer)
{
$connection = $installer->getConnection();

$table = $connection->newTable($connection->getTableName('vipps_quote'))
$table = $connection->newTable($installer->getTable('vipps_quote'))
->addColumn(
'entity_id',
Table::TYPE_INTEGER,
Expand Down Expand Up @@ -142,7 +142,7 @@ private function createVippsAttemptsTable(SchemaSetupInterface $installer)
{
$connection = $installer->getConnection();

$table = $connection->newTable($connection->getTableName('vipps_quote_attempt'))
$table = $connection->newTable($installer->getTable('vipps_quote_attempt'))
->addColumn(
'entity_id',
Table::TYPE_INTEGER,
Expand Down Expand Up @@ -188,7 +188,7 @@ private function createVippsAttemptsTable(SchemaSetupInterface $installer)
private function addStatusToQuote(SchemaSetupInterface $installer)
{
$connection = $installer->getConnection();
$tableName = $connection->getTableName('vipps_quote');
$tableName = $installer->getTable('vipps_quote');

$connection
->addColumn(
Expand All @@ -213,7 +213,7 @@ private function addStatusToQuote(SchemaSetupInterface $installer)
private function addStoreIdToQuote(SchemaSetupInterface $installer)
{
$connection = $installer->getConnection();
$tableName = $connection->getTableName('vipps_quote');
$tableName = $installer->getTable('vipps_quote');

$connection
->addColumn(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "magento2-module",
"description": "Vipps Payment Method",
"license": "proprietary",
"version": "1.3.6",
"version": "1.3.7",
"require": {
"magento/framework": "102.0.*",
"magento/module-sales": "102.0.*",
Expand Down

0 comments on commit b39676d

Please sign in to comment.