如何将本地 postgres 文件导入我的 Heroku postgres 数据库?
How can I import a local postgres file into my Heroku postgres database?
我的 Django 应用程序可以完美地获取数据并将数据插入本地 postgres 数据库。现在我的本地 postgres 数据库中有数据。当我在 heroku 上部署我的应用程序并在 heroku 中使用 运行 migrate 命令时,它会创建表。但是桌子是空的。
我只想知道我是否必须将我的所有数据再次插入到 heroku postgres 数据库中,或者有什么方法可以 migrate/export 本地 postgres 数据库将数据添加到 heroku postgres 数据库?
我的 Django 应用程序可以完美地获取数据并将数据插入本地 postgres 数据库。现在我的本地 postgres 数据库中有数据。当我在 heroku 上部署我的应用程序并在 heroku 中使用 运行 migrate 命令时,它会创建表。但是桌子是空的。
我只想知道我是否必须将我的所有数据再次插入到 heroku postgres 数据库中,或者有什么方法可以 migrate/export 本地 postgres 数据库将数据添加到 heroku postgres 数据库?