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

InconsistentMigrationHistory when upgrading due to dependency of latest Django CMS migration #9

Open
MacLake opened this issue Apr 18, 2018 · 0 comments

Comments

@MacLake
Copy link
Contributor

MacLake commented Apr 18, 2018

The dependency

    dependencies = [
        ('cms', '__latest__'),
    ]

in migrations/0001_initial.py leads to an InconsistentMigrationHistory when updating Django CMS with new migrations, because in case the initial djangocms-slider migration has already been executed and after that new migrations in Django CMS are added, which are then not yet executed yet, Django complains, because of that:

django.db.migrations.exceptions.InconsistentMigrationHistory: Migration djangocms_slider.0001_initial is applied before its dependency cms.0020_old_tree_cleanup on database 'default'.

When you remove this dependency, the migration works fine.

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

No branches or pull requests

1 participant