Closed boboldehampsink closed 2 months ago
@boboldehampsink can you please send me your Craft Commerce 4 DB backup, with the config/project
folder, and composer.json, and composer.lock to support@craftcms.com so I can debug this. Thanks.
Thanks for that. I think the issues are now fixed.
To get the fix early, change your craftcms/commerce
requirement in composer.json to:
"require": {
"craftcms/commerce": "5.x-dev#323ac6403f8a91812af074811fab37fb5e021e93 as 5.0.3",
"...": "..."
}
Then run composer update
.
I will let you know once the release is out here.
5.0.5 is out and contains fixes from upgrading from 4.x
@lukeholder got 5.0.5 and now seeing this error when upgrading:
> add column autoSetPaymentSource boolean NOT NULL DEFAULT FALSE to table {{%commerce_stores}} ...Exception: SQLSTATE[42701]: Duplicate column: 7 ERROR: column "autoSetPaymentSource" of relation "commerce_stores" already exists
web-1 | The SQL being executed was: ALTER TABLE "commerce_stores" ADD "autoSetPaymentSource" boolean NOT NULL DEFAULT FALSE (/app/user/vendor/yiisoft/yii2/db/Schema.php:676)
web-1 | #0 /app/user/vendor/yiisoft/yii2/db/Command.php(1307): yii\db\Schema->convertException(Object(PDOException), 'ALTER TABLE "co...')
@lukeholder is this related or do I need to create a new issue?
This should be fixed in 5.0.6
What happened?
Description
When upgrading from Commerce 4, while using the fix in #3486 to boot this on Postgres, I see the following error:
Steps to reproduce
Upgrade from Commerce 4
Craft CMS version
5
Craft Commerce version
5
PHP version
8.3
Operating system and version
No response
Database type and version
PostgreSQL 15.3
Image driver and version
No response
Installed plugins and versions
-