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

GH actions: add check for missing migrations (and fix migrations) #961

Merged

Conversation

kevinmarsh
Copy link
Contributor

Closes #959 and adds a GH action check via Django's makemigrations --check to prevent it happening again (you can see the failing check here).

I also "fixed" the missing migration by just modifying the original migration instead of creating a new one (instead of #960) since this specific Model.Meta change doesn't affect the SQL schema this should be safe to do and thus doesn't require users to run new migrations in the next release.

There was also a missing migration in the test suite, I just created that since I didn't want to dig into that change too much and that migration wouldn't affect end users of this library.

@etianen etianen mentioned this pull request Jan 30, 2024
@etianen etianen merged commit dd7872b into etianen:master Jan 30, 2024
15 checks passed
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.

5.0.11 misses migration files
2 participants