- 先到数据库把表删掉:drop table
- 注释Django中对应的Model
- 执行以下命令:
python manage.py makemigrations
python manage.py migrate --fake
- 去掉步骤2中的注释
- 执行以下命令:
python manage.py makemigrations
python manage.py migrate
python manage.py makemigrations
python manage.py migrate --fake
python manage.py makemigrations
python manage.py migrate