Sometimes, we want to fix Python Django migrate returning error "table already exists"
In this article, we’ll look at how to fix Python Django migrate returning error "table already exists".
How to fix Python Django migrate returning error "table already exists"?
To fix Python Django migrate returning error "table already exists", we can use the --fake
option.
For instance, we write
python manage.py migrate --fake <appname>
to run migrate
with the --fake
option to run the migrations without creating the table.
Conclusion
To fix Python Django migrate returning error "table already exists", we can use the --fake
option.