Skip to content

Fix table migration - #12697

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:migration-fix
Aug 24, 2026
Merged

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

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Error message on mysql:

  File "/opt/inventree/src/backend/InvenTree/users/migrations/0016_remove_legacy_user_sessions_table.py", line 19, in remove_legacy_table
    schema_editor.execute(f'DROP TABLE {table_name}')
  File "/opt/inventree/.venv/lib/python3.12/site-packages/django/db/backends/base/schema.py", line 184, in execute
    raise TransactionManagementError(
django.db.transaction.TransactionManagementError: Executing DDL statements while in a transaction on databases that can't perform a rollback is prohibited.

- Prevent error on MYSQL migration
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Aug 24, 2026
@SchrodingersGat SchrodingersGat added the migration Data or schema migrations label Aug 24, 2026
@netlify

netlify Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 1fdd521
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a8c4cb0306dbe0008aa4654

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.83%. Comparing base (08b0bb8) to head (1fdd521).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12697   +/-   ##
=======================================
  Coverage   86.82%   86.83%           
=======================================
  Files        1456     1456           
  Lines       97643    97725   +82     
  Branches    11330    11330           
=======================================
+ Hits        84777    84856   +79     
- Misses      12800    12803    +3     
  Partials       66       66           
Flag Coverage Δ
backend 90.88% <ø> (+<0.01%) ⬆️

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

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

@SchrodingersGat
SchrodingersGat merged commit 176ef1a into inventree:master Aug 24, 2026
57 of 58 checks passed
@SchrodingersGat
SchrodingersGat deleted the migration-fix branch August 24, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

migration Data or schema migrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant