-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Problem:
When running the migration the migration will fail with this error:
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration app_name.0002_auto_XXXX is applied before its dependency mailauth_user.0001_initial on database 'default'.
Guess
its happening because an existing app is referencing in a migration the to=settings.AUTH_USER_MODEL and therefore the non existing user migration.
Expected behaviour
The migration should always run no matter what exists before.
My Workaround
I just delete AUTH_USER_MODEL = 'mailauth_user.EmailUser' for the duration of the migration
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested