Skip to content

Commit

Permalink
NTR: fix mgration for sw 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Mar 28, 2024
1 parent 8e284bc commit 5c1b929
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Migration/Migration1711618833SubscriptionCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ public function update(Connection $connection): void
//load used currencies
$sql = "SELECT DISTINCT `currency` FROM `mollie_subscription`";
$statement = $connection->executeQuery($sql);
$currencies = array_keys($statement->fetchAllAssociativeIndexed());

$currencies = [];
while ($row = $statement->fetchAssociative()) {
$currencies[]=$row['currency'];
}
//get the data for each currency
$sql = "SELECT HEX(`id`) as `id`,`iso_code`,`item_rounding`,`total_rounding` FROM `currency` WHERE `iso_code` IN(:currencies)";
$statement = $connection->executeQuery($sql, [
Expand Down

0 comments on commit 5c1b929

Please sign in to comment.