我将我的应用程序推送到heroku,但似乎数据库没有迁移(数据库有0个表和0个条目)。如何正确迁移?
最佳答案
如果您使用的是入门级数据库,则填充这些统计信息会出现延迟。如果您psql
in:
$ heroku pg:psql -a app_name
psql=> \dt
[...tables...]
此外,请参阅我在本地使用 postgres 而不是 sqlite3 的答案(推荐):
关于django - sqlite数据库在推送到heroku服务器(django)时未迁移到postgresql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15973188/