Django Migration Problem Solution

* Delete table manually from DB

* Delete migration file in migrations folder

* User following example commands:

       - python manage.py makemigrations

       - python manage.py migrate --fake core 0038_auto_20211003_2229

       - python manage.py migrate core 0039_customerbkashpayment

(Note: 0039_customerbkashpayment is the recently migration file. 'core' is app name. 0038_auto_20211003_2229 is the previous on issue migrated file.)

Comments

Popular posts from this blog

Generate SHA-1 and SHA-256 for Debug and Release android app

How to Import and Export MySQL Database Command line in Linux

JAVA_HOME setup and Integrate with Android Studio Project in Ubuntu