Skip to content
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

Squash migrations to prevent issues with older SQLite versions. #225

Conversation

rtibbles
Copy link
Member

Summary

Squashes historic migrations so that we don't trigger SQLite issues with renaming columns within a transaction.
Adds a regression test suite to run migrations against SQLite 3.25.3 - this could be generalized to run against multiple SQLite versions, but I did the minimal implementation for now, as this is the version we have a known issue.

Running the same steps locally prior to the squashed migration, I replicated the reported error, the migration squash fixes it.

Reviewer guidance

I will open a draft PR on Kolibri with this update so we can test that it fixes the issue in Kolibri specifically

Issues addressed

Fixes #224

@rtibbles rtibbles added this to the Morango v0.8.x milestone Jun 24, 2024
@rtibbles rtibbles force-pushed the old_sqlite_compatible_migrations branch 2 times, most recently from dceba52 to 57a5a11 Compare June 25, 2024 21:38
@rtibbles rtibbles force-pushed the old_sqlite_compatible_migrations branch from 57a5a11 to ac4d5a3 Compare June 25, 2024 21:59
Copy link
Member

@bjester bjester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bjester bjester merged commit 882236c into learningequality:release-v0.8.x Jun 26, 2024
18 checks passed
@pcenov
Copy link
Member

pcenov commented Jul 3, 2024

@rtibbles I'm still having trouble with this, for example while testing this PR learningequality/kolibri#12397 - can we please have that change applied to the new builds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with historic migrations on SQLite < 3.26 with Django 3.2
3 participants