Skip to content

Migration fix - #12808

Merged
SchrodingersGat merged 17 commits into
inventree:masterfrom
SchrodingersGat:migration-fix
Sep 8, 2026
Merged

SchrodingersGat merged 17 commits into
inventree:masterfrom
SchrodingersGat:migration-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Fixes a migration introduced in #11971 - which does not run on MySQL due to that backend not returning the rows created with bulk_create.

This PR fixes the migration and also ensures that migration CI regression testing is performed against all supported DB backends.

- Handles case where data migration is running on a DB which does not support RETURNING
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Sep 7, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed CI CI / unit testing ecosystem setup Relates to the InvenTree setup / installation process migration Data or schema migrations labels Sep 7, 2026
@netlify

netlify Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 0f23794
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a9f94fdfc65ef000813a693

@SchrodingersGat SchrodingersGat added the full-run Always do a full QC CI run label Sep 7, 2026
@codecov

codecov Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.20%. Comparing base (ef42a7b) to head (0f23794).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12808      +/-   ##
==========================================
+ Coverage   87.17%   87.20%   +0.03%     
==========================================
  Files        1487     1486       -1     
  Lines      101449   101384      -65     
  Branches    11547    11617      +70     
==========================================
- Hits        88434    88409      -25     
+ Misses      12952    12913      -39     
+ Partials       63       62       -1     
Flag Coverage Δ
backend 91.20% <30.76%> (-0.01%) ⬇️
migrations-mysql 38.02% <100.00%> (?)
migrations-postgresql 38.02% <100.00%> (?)
migrations-sqlite 38.03% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.50% <100.00%> (+<0.01%) ⬆️
Backend General 94.73% <100.00%> (+<0.01%) ⬆️
Frontend 79.76% <ø> (+0.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

with:
persist-credentials: false
- name: Environment Setup
uses: ./.github/actions/setup
with:
persist-credentials: false
- name: Environment Setup
uses: ./.github/actions/setup
with:
persist-credentials: false
- name: Environment Setup
uses: ./.github/actions/setup
persist-credentials: false
name: Checkout Code
- name: Environment Setup
uses: ./.github/actions/setup
@SchrodingersGat
SchrodingersGat merged commit 7cd74ee into inventree:master Sep 8, 2026
81 checks passed
@SchrodingersGat
SchrodingersGat deleted the migration-fix branch September 8, 2026 08:50
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 CI CI / unit testing ecosystem full-run Always do a full QC CI run migration Data or schema migrations setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants