Skip to content

Commit

Permalink
Update 2024-03-24-how-to-fix-inconsistent-django-migration-files.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun authored Mar 24, 2024
1 parent 4396c99 commit 8633c4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ categories: [python, django]
Sometimes we have case where we want to upgrade the 3rd party packages.
But, we have case where the migration files were totally different with the old version.

While upgrading the dj-stripe version, the migration files were totally different.
For example in my case, while upgrading the dj-stripe version, the migration files were totally different.
And it causing inconsistent migration history or other migration issues.

So, to fix this we need to reset the **`django_migrations`** table after deployment is done, then restart the pods/containers.
Expand Down

0 comments on commit 8633c4f

Please sign in to comment.