Issues migrating to 5.x on production #3744
Replies: 1 comment
-
After re-attempting the upgrade multiple times, I'm pretty sure this is a bug so I opened an issue instead #3746 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've successfully updated my dev site from Commerce 3 to 4 to 5, following the upgrade docs for both Commerce and Craft CMS (I hope!).
But re-running the steps as a trial run for production keeps failing:
CRAFT_ENVIRONMENT
to something besides "dev" soallowAdminChanges
isfalse
composer install
and thenphp craft up
php craft commerce/upgrade
composer install
and thenphp craft up
At this point after the database migrations run, I get an error:
Should I be focusing on the SQL error, OR the fact that a store is being deleted at all?
When I query the database, it looks like the
commerce_stores
uid
(e.g. "abc") is different from the uid being used in theproject.yaml
(e.g.xyz: 'Primary Store'
). So is it trying to delete the old store and create a new one matching the project config? Is this normal expected behavior or does it indicate I've done something else wrong?Sorry I know that I've left out a lot of details, but any help just looking in the right direction would be really appreciated!
Beta Was this translation helpful? Give feedback.
All reactions