Reputation: 37
I see some issues in my database while updating my model in Django. it only shows 12 fields!
when I added one more field to it and then run makemigrations
command, it does not show any changes.
I'm using MySQL database init. is there anything in the Django model like we can only define some fields or we can define as much as we need?
Upvotes: 0
Views: 367
Reputation: 263
You should be a able to create as my fields as you want. I recommend deleting all files in your migrations folder, except __int__.py
file and try python manage.py makemigrations
and python manage.py migrate
again.
If this doesn't work, also delete the db.sqlite3 file. This usually works for me!
Upvotes: 1