运行 django 中的迁移在本地工作,但部署到 Heroku 时数据库未更新

Running Migration in django works locally, but database is not updated when deployed to Heroku

注意:以前有人问过这个问题,但是 none 提供的答案对我有用。 我在 heroku 上部署了一个 django 应用程序,然后对我的模型进行了更改,之后我 运行 在本地进行迁移(python manage.py makemigrations 和 python manage.py 迁移)。应用程序在本地更改后工作正常,但在服务器上,我 运行 进入以下编程错误:

django.db.utils.ProgrammingError:关系 "cart_cartitem" 的列 "product_owner_id" 不存在。
我运行 python manage.py 在服务器上迁移,但我仍然得到同样的错误。我还在服务器上 运行 python manage.py makemigrations,它说没有检测到任何变化。

我做错了什么?谢谢

错误已修复。我从不同的目录推送