Answers for "reverse a django migration"

1

revert a migration django

python manage.py migrate <your-app> <migration number>
# eg
python manage.py migrate my_app 0001
Posted by: Guest on September-25-2020
0

reverse a django migration

# You need to identify the last migration to which you want
# to reverse and use it as the migration target

python manage.py migrate my_app_name target_migration
Posted by: Guest on August-13-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language