Skip to content

Commit

Permalink
[Migrations] Use adding SQL instead of query execution
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jan 18, 2021
1 parent 07782b1 commit ce19c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Migrations/Version20201208105207.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ private function getParsedDetails(array $details): string

private function setDefaultAdjustmentData(): void
{
$this->connection->executeQuery("UPDATE sylius_adjustment SET shipment_id = null, details = '[]'");
$this->addSql("UPDATE sylius_adjustment SET shipment_id = null, details = '[]'");
}

private function updateAdjustment(int $adjustmentId, string $shipmentId, string $details): void
{
$this->connection->executeQuery("UPDATE sylius_adjustment SET shipment_id = $shipmentId, details = '" . $details . "' WHERE id = $adjustmentId");
$this->addSql("UPDATE sylius_adjustment SET shipment_id = $shipmentId, details = '" . $details . "' WHERE id = $adjustmentId");
}

private function getShipmentAdjustmentsWithData(): array
Expand Down

0 comments on commit ce19c38

Please sign in to comment.