Answers for "django rollback database to current migrations"

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 "django rollback database to current migrations"

Python Answers by Framework

Browse Popular Code Answers by Language