Closed eeintech closed 3 years ago
@eeintech this is a upstream problem of our money dependency see #1674
Duplicate of #1674
Oh right, I have a very short memory... :weary:
@eeintech me too, I just remember because I tried to fix it and concluded that it was a upstream problem.
We do need to address #1674 reasonably soon to prevent these erroneous migrations from upsetting master.
@SchrodingersGat as far as i can understand the problem only upstream can address this? Or should we try inheriting the model-field to change the migration procedure? Could try that on the weekend.
It might be worth implementing our own InvenTreeMoneyField
as you say.
I would like to see the currency options (default, allowed currency codes) moved out of the config file and into the InvenTree run-time settings. It should not require a sysadmin to change these settings, but the current restrictions of MoneyField
force our hand.
On master, running
inv migrate
on instance using SQLite database outputs:Which is correct I believe. Now running the same command on a PostgreSQL database:
It creates 4 new migration files, running
git status
:Not sure where the discrepancy comes from, and not sure if it is a real issue but I am quite confused why would the Django ORM behave differently on different types of databases. Also not sure if those migration files should be plugged into master.