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

Add Django 5.1 compatibility to MigrationAutodetectorMixin #156

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

pfouque
Copy link
Contributor

@pfouque pfouque commented Aug 21, 2024

Thanks to #148 I managed to find a fix to make pg-trigger compatible with Django 5.1

Django 5.1 switched to namedtuples for migration dependencies.

pgtrigger's migration patching will also need to be updated 👍

NB: It would be nice to add Django "main" version to the testing grid so that issue are discovered soon enough before the official releases

Comment on lines +9 to +10
py{310,311,312}-django51-psycopg2
py312-django51-psycopg3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wesleykendall
Copy link
Member

@pfouque thanks for the change! Im surprised the test suite doesn't fail for 5.1. Let me get an upgrade into pgtrigger first, then I'll merge this, and then I'll see if I can accompany this with a failing test. Should have this released today

@wesleykendall
Copy link
Member

Nvm the test suite did catch this. You are right that I should just be testing against the main branch. I will look into adding that into the testing matrix.

Thanks again for the fix. Will report back when this is deployed

@wesleykendall wesleykendall merged commit 13dea27 into AmbitionEng:main Aug 26, 2024
5 checks passed
@pfouque
Copy link
Contributor Author

pfouque commented Aug 26, 2024

Thanks @wesleykendall

@pfouque pfouque deleted the django51 branch August 26, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants