Skip to content

Fix for improper migrations - #4961

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:part-migration-fix
Jun 3, 2023
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:part-migration-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

- Order of migrations had been changed
- Resulted in conflicting database state
- Never ever do this!
- Ref: inventree#4898
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed setup Relates to the InvenTree setup / installation process labels Jun 3, 2023
@SchrodingersGat SchrodingersGat added this to the 0.12.0 milestone Jun 3, 2023
@SchrodingersGat
SchrodingersGat merged commit 2ca9e0e into inventree:master Jun 3, 2023
@SchrodingersGat
SchrodingersGat deleted the part-migration-fix branch June 3, 2023 14:26
SchrodingersGat added a commit to SchrodingersGat/InvenTree that referenced this pull request Jun 6, 2023
- In inventree#4961 we did not notice that the migration files had been renamed
- There is still a chance that a production db (running from master) has a corrupted set of migrations
- Check if the duplicate columns already exist
- If they do, delete them first
SchrodingersGat added a commit that referenced this pull request Jun 6, 2023
* Additional migration fix:

- In #4961 we did not notice that the migration files had been renamed
- There is still a chance that a production db (running from master) has a corrupted set of migrations
- Check if the duplicate columns already exist
- If they do, delete them first

* Typo fix

* Add PR reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant