[英]Django migrations & Heroku: ProgrammingError at / column does not exist
I'm having a problem with migrations and heroku. 我在迁移和heroku时遇到问题。 I have a django 1.7 app that is running locally but I get the following message error from heroku when I run manage.py migrate:
我有一个在本地运行的django 1.7应用程序,但是当我运行manage.py migration时,我从heroku中收到以下消息错误:
django.db.utils.ProgrammingError: column "tag" of relation "website_classificado" does not exist
Any ideas? 有任何想法吗? Is there a way to manually add columns to the postgres database through the heroku shell?
有没有办法通过heroku shell手动将列添加到postgres数据库?
Many thanks. 非常感谢。
Unfortunately I didn't find out why the migrations were not being applied but I found a way to add the columns manually using pgadmin3 connected to my heroku database. 不幸的是,我没有找到为什么不应用迁移的原因,但是我找到了一种使用连接到我的heroku数据库的pgadmin3手动添加列的方法。 For those curious to know how to do this: Connect to a heroku database with pgadmin
对于那些想知道如何执行此操作的人: 使用pgadmin连接到heroku数据库
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.