Django migration applied but i can not see tha changes in the db

I had a Feedback model with:
author(fk to user model)
game(fk to game model),
mark(PostiveSmallIntegerField)
text (textfield).
Now i updated this model and my model now looks like:
author(fk to user model)
game(fk to game model)
user(fk to user model)
game_level(PostiveSmallIntegerField)
variations(PostiveSmallIntegerField)
mark(PostiveSmallIntegerField)
text(textfield)
After that i did makemigrations and the migration created successfully, but when i am running migrate command it says “no migrations to apply”. The problem is, i see the migration is applied when i run showmigrations, but when i launch the db there is no changes.
Do anyone encountered this issue?

Did you forget to edit the admin.py page see example This section ModelAdmin

No, the problem is, i cannot see the changes in the db.
But the problem was solved as I deleted the migration file and added a new migration of another model of the same application. The migration file of Feedback changes was with 0009 after i add another migration the Feedback changes migration file became 0010 and the problem was solved.
I think may be the problem was because i did migrate --fake, but unfaking did not resolve the problem.

1 Like

It is good to hear that you solved the DB problem yourself?.:+1:

1 Like