Skip to content

Commit e59cbbc

Browse files
committed
Use getTableName() method to obtain the full table name containing table prefix
1 parent 5f181b3 commit e59cbbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Setup/Patch/Data/VaultMigration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ private function migrateBillingAgreementsToVault(ModuleDataSetupInterface $setup
6161
return;
6262
}
6363

64-
$columns = $setup->getConnection()->describeTable('paypal_billing_agreement');
64+
$paypalTableName = $setup->getConnection()->getTableName('paypal_billing_agreement');
65+
$columns = $setup->getConnection()->describeTable($paypalTableName);
66+
6567
if (!isset($columns['method_code']) || !isset($columns['status'])) {
6668
$this->adyenLogger->addAdyenInfoLog('Columns method_code and status do not exist, skipping migration');
6769
return;

0 commit comments

Comments
 (0)