简体   繁体   English

Django迁移&Heroku:/列中的ProgrammingError不存在

[英]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.

相关问题 Django Heroku Postgres-编程错误:关系不存在 - Django Heroku Postgres - ProgrammingError: relation does not exist Django&Postgres:持续存在“ ProgrammingError:列不存在” - Django & Postgres: persisting 'ProgrammingError: column does not exist' Django:ProgrammingError:列“id”不存在 - Django : ProgrammingError: column "id" does not exist django.db.utils.ProgrammingError:使用 heroku 和 djongo 的列calculator_calculation._id 不存在 - django.db.utils.ProgrammingError: column calculator_calculation._id does not exist using heroku and djongo Heroku 上的 Django:ProgrammingError at / 关系“theblog_category”不存在 - Django on Heroku: ProgrammingError at / relation "theblog_category” does not exist Django,ManyToManyField-ProgrammingError:关系foo_bar不存在。 尽管从未建立关系,但已在迁移中得到认可 - Django, ManyToManyField - ProgrammingError: relation foo_bar does not exist. Recognized in migrations, though relation is never created 上传到 Heroku - ProgrammingError: relation does not exist - Upload to Heroku - ProgrammingError: relation does not exist ProgrammingError:关系“ schema”的列“ column”不存在 - ProgrammingError: column “column” of relation “schema” does not exist ProgrammingError:关系“django_site”不存在 - ProgrammingError: relation “django_site” does not exist 编程错误:关系“django_session”不存在 - ProgrammingError: relation “django_session” does not exist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM