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

Migration fail installing wagtail-localize fresh on a wagtail 4.1 project #629

Closed
ArnarTumi opened this issue Oct 6, 2022 · 1 comment · Fixed by #630
Closed

Migration fail installing wagtail-localize fresh on a wagtail 4.1 project #629

ArnarTumi opened this issue Oct 6, 2022 · 1 comment · Fixed by #630
Labels
type:bug Something isn't working

Comments

@ArnarTumi
Copy link

I was trying to add 1.3a4 to a project that I had already upgraded to wagtail 4, and end up with
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration wagtailcore.0059_apply_collection_ordering is applied before its dependency wagtail_localize.0001_initial

If I understand this correctly the run_before line in the 0001 migration that was added in #616 will cause a failure for everyone trying to install wagtail-localize after they have already run migrate 0059 (I am at 0076 at the moment)

@zerolab zerolab added this to the 1.3 milestone Oct 6, 2022
@zerolab
Copy link
Collaborator

zerolab commented Oct 6, 2022

It is a tough one this one as I keep having a chicken-and-egg issue.
Will take a deeper dive tomorrow. Looks like we need to dig into the migrations state and decide how things are run, because we support 2.15+

@zerolab zerolab added the type:bug Something isn't working label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants