I am building a Django web application and I dropped the table django_migrations using psql command line and I want to recreate it.
To recreate django_migrations simply use
./manage.py migrate --fake
But please be careful with that as mentioned here:
If you break something, nobody can help you probably, because the migration system will not know the current state of the database more. Therefore do a backup, write notes, use a sandbox and work precisely.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.