New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration error when using default currency that is not USD #3235
Comments
Did you find a solution for this? |
@chrisfranklin Not yet, I'm a bit busy for about another week. I will look into this more in about a week. The same error does not occur on older versions of saleor. |
@Pacu2 It could be due to some changes in this commit: I'm not really able to assess this easily. |
This is making our deployments painful as we need to set it to USD upon migration, then shift to SEK. |
I managed to fix this by replacing all occurrences of Because I read in another issue that it is necessary, I cascadingly truncated the |
How about replacing “USD” in migrations with “settings.DEFAULT_CURRENCY”? haven’t tried but should work tho |
Well, if I understand correctly, the issue occurs when that value gets changed by the user. Assuming that the user is setting a environment variable, and not directly editing the But, then, if the store currency is |
Resolved in #3506 |
What does this commit/MR/PR do? - Update values for currency migrations fix - Fix for issue `saleor/saleor#3235 by PR `saleor/saleor#3506 Why is this commit/MR/PR needed? - The currency migrations prior to this would break
What does this commit/MR/PR do? - Update values for currency migrations fix - Fix for issue `saleor/saleor#3235 by PR `saleor/saleor#3506 Why is this commit/MR/PR needed? - The currency migrations prior to this would break
What does this commit/MR/PR do? - Update values for currency migrations fix - Fix for issue `saleor/saleor#3235 by PR `saleor/saleor#3506 Why is this commit/MR/PR needed? - The currency migrations prior to this would break
* Update values for currency migrations fix What does this commit/MR/PR do? - Update values for currency migrations fix - Fix for issue `saleor/saleor#3235 by PR `saleor/saleor#3506 Why is this commit/MR/PR needed? - The currency migrations prior to this would break * Update the version of the saleor image
What I'm trying to achieve
When moving to new dockerhub saleor image
558de3985903133660e97d8a436b374c405a2fa1
,https://hub.docker.com/r/mirumee/saleor/tags/
Installation of saleor using a default currency that is not
USD
. In this case, DEFAULT_CURRENCYwas set to
GBP
Steps to reproduce the problem
python3 manage.py migrate
on a clean installationWhat I expected to happen
I expected the migration to end successfully like previous saleor versions when
DEFAULT_CURRENCY = GBP
Issue was resolved when
DEFAULT_CURRENCY = USD
Error message
System information
Operating system: docker container
Browser: N/A
The text was updated successfully, but these errors were encountered: