我如何将所有数据项目生产推向Supabase中的本地环境

发布于 2025-01-31 08:43:08 字数 261 浏览 7 评论 0原文

我已经直接使用supabase平台创建了一个项目,而不是在本地环境中,因此所有表都在生产中,但是现在我需要一个本地环境进行开发O测试,因此我使用本指南创建了一个本地项目,但是该项目来自Scracth,问题 �我如何从生产到本地环境中将所有桌子拉出?

本地指南

I have created a project using supabase platform directly and not in local enviroment so all tables are in production, but now i need a local enviroment for development o test so i created a local project using this guide but the project is from scracth, the question is ¿how i can pull all tables from production to local enviroment?

Local guide

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

痴情 2025-02-07 08:43:08

您可以通过使用PGDUMP导出表模式并将其导入到本地环境中来做到这一点。您可以遵循本指南 https://supabase.com/docs/guides/guides com /平台/迁移和升级项目

You can do this by using pgdump to export the table schema and importing it back into your local environment. You can follow this guide https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects

三岁铭 2025-02-07 08:43:08

Supabase DB Plup仅将DB作为迁移文件下载,然后您需要通过命令Supabase DB RESET应用它。

supabase db pull only will download the db as migration file then you need to apply it by command supabase db reset.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文