Skip to content

Commit

Permalink
Merge branch 'v3' into v4
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
lukeholder committed Jun 18, 2024
2 parents 1567d90 + 4da509a commit 8bbed42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Stripe for Craft Commerce

## 4.1.2.3 - 2024-06-18

- Fixed a SQL performance issue when upgrading. ([#190](https://github.com/craftcms/commerce-stripe/issues/190))

## 4.1.2.2 - 2024-04-09

- Fixed a PHP error that could occur when handling a webhook request. ([#294](https://github.com/craftcms/commerce-stripe/issues/294))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public function safeUp()
$this->addColumn('{{%stripe_paymentintents}}', 'transactionHash', $this->string()->after('orderId'));
}

MigrationHelper::dropAllForeignKeysOnTable('{{%stripe_paymentintents}}', $this);
MigrationHelper::dropAllIndexesOnTable('{{%stripe_paymentintents}}', $this);

$transactionsTable = '{{%commerce_transactions}}';
$stripePaymentIntentsTable = '{{%stripe_paymentintents}}';

Expand All @@ -45,6 +42,9 @@ public function safeUp()

$this->execute($sql);

MigrationHelper::dropAllForeignKeysOnTable('{{%stripe_paymentintents}}', $this);
MigrationHelper::dropAllIndexesOnTable('{{%stripe_paymentintents}}', $this);

$this->addForeignKey(null, '{{%stripe_paymentintents}}', 'gatewayId', '{{%commerce_gateways}}', 'id', 'CASCADE', null);
$this->addForeignKey(null, '{{%stripe_paymentintents}}', 'customerId', '{{%stripe_customers}}', 'id', 'CASCADE', null);
$this->addForeignKey(null, '{{%stripe_paymentintents}}', 'orderId', '{{%commerce_orders}}', 'id', 'CASCADE', null);
Expand Down

0 comments on commit 8bbed42

Please sign in to comment.