Skip to content

🐞 Fix migration conflict caused by duplicate 0022 migrations in introduction app#506

Open
mohityadav8 wants to merge 1 commit into
adeyosemanputra:v3.0.0-prefrom
mohityadav8:fix-migration-0022-conflict
Open

🐞 Fix migration conflict caused by duplicate 0022 migrations in introduction app#506
mohityadav8 wants to merge 1 commit into
adeyosemanputra:v3.0.0-prefrom
mohityadav8:fix-migration-0022-conflict

Conversation

@mohityadav8

Copy link
Copy Markdown
Contributor

PR Description

This PR resolves a migration conflict in the introduction app caused by two migrations sharing the same number 0022.

Conflicting migrations:

0022_remove_owasp2017_lab_models.py
0022_remove_owasp2021_lab_models.py

Both migrations originally depended on:

("introduction", "0021_csrf_user_tbl")

This caused Django to be unable to determine the correct migration order, resulting in a migration conflict.

Fix

The dependency of 0022_remove_owasp2021_lab_models.py has been updated to depend on:

("introduction", "0022_remove_owasp2017_lab_models")

This chains the migrations properly and ensures Django applies them in the correct sequence.

Result
Eliminates migration numbering conflict
Ensures consistent migration order
Prevents Django migration crashes
Related Issue

Closes #505

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.

1 participant