0

I have a Django app running on Heroku.

Usually I can just run python manage.py dbshell on my local machine and then do DROP TABLE <app_table>. But I can't do this on Heroku.

How can I do that for an app running on Heroku without deleting the whole database and resyncing?

Note: Heroku is a PostgreSQL db. I haven't been able to get Postgres working on Mountain Lion so transferring the database from my local machine isn't an option :(

4

1 回答 1

0

您可以使用nashvegas,据报道它正在使用 heroku

另请注意,您尝试做的事情称为“模式迁移”,django 允许各种解决方案

于 2012-11-19T16:04:39.843 回答