craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
217 stars 170 forks source link

[5.x]: Failed migration on update #3581

Closed teachmeter closed 2 months ago

teachmeter commented 2 months ago

What happened?

Description

After running craft update all migrations for commerce fail.

Steps to reproduce

  1. run craft update all
  2. wait for the migrations step

Expected behavior

Migrations for commerce are applied

Actual behavior

Migrations failing with prompt to restore database backup and revert composer changes.

Log of the command process failed-migration.log

Craft CMS version

Craft Pro 5.2.4.1

Craft Commerce version

5.0.11.1

PHP version

8.2.3

Operating system and version

DDEV Linux 5.15.49-linuxkit

Database type and version

MySQL 8.0.31

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

linear[bot] commented 2 months ago

PT-1947 [5.x]: Failed migration on update

nfourtythree commented 2 months ago

Hi @teachmeter

Thank you for reporting this. We have pushed a fix to rectify this issue, it will be included in the next release of Commerce.

To get this early, change your craftcms/commerce requirement in your project's composer.json to:

"require": {
  "craftcms/commerce": "5.x-dev#bba8e1ceaf43ced94b2b5ab510e76def9754b660 as 5.0.12.1",
  "...": "..."
}

Then run composer update.

Thanks!

nfourtythree commented 2 months ago

Commerce 5.0.12.2 has now been released with this fix included.

Thanks!