我有这样的领域,
counter = models.PositiveIntegerField()
在迁移之后,我检查我的数据库。
counter | int(11)
我想要改变这个领域,
counter = models.PositiveIntegerField(null=True, blank=True)
迁移后,当我检查我的数据库
counter | int(11)
不
counter | int(11),Unsigned,null
有人能解决我的问题吗?
发布于 2016-05-03 05:46:38
看看这个有用不管用。
1. Delete the existing migration folder.
2. python manage.py makemigrations <app_name>
3. python manage.py migrate
https://stackoverflow.com/questions/36996368
复制相似问题